VBAHole22 Posted April 12, 2005 Posted April 12, 2005 I desparately need help because I am a coder being forced to design. I program in .NET (C# and VB) by day but I take a class at night. As an assignment for my class I need to build a webpage that has dynamic content pulled from SQL Server. I need a nice clean template to style my pages by. I have heard of what folks call a 'c-clamp' where you have a header, footer, and nav bar on the side. I have all three of these already in user controls. I just don't know how to get them lined up on the page the right way and then swap in my content. Do I use tables, divs grid layout, flow layout? I'm clueless because I don't have much experience in this. I can see why you would put a user control on a page instead of html. So if you make a change it gets rippled out. But couldn't you make a whole website with just one main page if you are just swapping in content? It would almost be like frames but not really. Right now I have my 3 user controls and they are laid out in divs using css to position them. The problem is if the page has a lot of content then the footer does move down with the content to get out of the way. Also when I want to drop things in the content div they aren't aligned very well. I guess I could put divs in there and position them with css as well but that seems like overkill and too rigid. I'm clueless. Am I even close to the way this should be done? Is there an easier more manageable way for me to drop content into the middle div? Quote Wanna-Be C# Superstar
Diesel Posted April 12, 2005 Posted April 12, 2005 You can fix the CSS to make the left nav as long as the content and to make the content spaced out correctly. Just find some good css code. Check out csszengarden.com. How would you make a page that swapped in the body? You would still need to reload the page. Quote
VBAHole22 Posted April 12, 2005 Author Posted April 12, 2005 Thank you for the link. True I would still need a post back but I would not have 50 pages with the same template. There would only be one template page and 50 content pages. I have no clue if this can/should be done. Quote Wanna-Be C# Superstar
michael_hk Posted April 13, 2005 Posted April 13, 2005 Take a look at here Quote There is no spoon. <<The Matrix>>
VBAHole22 Posted April 13, 2005 Author Posted April 13, 2005 Yeah, I'm seeing that method quite a bit in my google searches. But it is debunked here with an alternate method suggested. Quote Wanna-Be C# Superstar
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.