how to setup website layout

  • Thread starter Thread starter Ralph Soons
  • Start date Start date
R

Ralph Soons

Hi all,

I am looking for a correct way to setup my website layout. For instance: I
would like to have a selection mechanism (like tree or something) on the
left and the page data on the right.

I tried several ways now to implement some kind of mechanism. For instance
using frames, loading user controls in a placeholder on the right side,
loading pages in an iframe tag on the right side, etc. Some of these options
I implemented but most of them but I am still looking for the in my eyes
correct way. Most of them resulted in some strange problems i had to solve,
so it didn't seem the correct way to me.

Can you tell me what ways U use, and what way is in your opinion the correct
way to implement this.

Thanks for your help.

Ralph Soons
 
I understand the giant head (Microsoft) is going to address this in a
future version of VS.NET, but for now, I typically use the same
techniques I have used in legacy ASP coding, but updated for .NET.

Make your lefthand menu system a user control and insert it into each
page. Same for a header / footer or whatever. It kind of turns the
concept of a template around, but does give you single source
maintainability of the parts of your pages.

If you want to really enforce the page layout, you could create an
initial page, save that and then inherit from it for the rest of your
application. This would force you to have the same layout on all
pages.

Dan
 
we do this by only having a single page for the entire site which includes
the basic layout plus place holders for menu & content.
the actual menus&content are web user controls that are added to the page at
runtime depending on the context in which the page is called.
 
Back
Top