Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Wanna-Be C# Superstar
Posted
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.
Posted

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.

Wanna-Be C# Superstar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...