Saturday, March 24, 2012

Old way in new life (include related)

Hi All,

I am porting my ASP site into ASP.NET and am faced with a bit of a problem ... in ASP I used just one page, default.asp, that had a site design and a main form and then I would include different asp pages depending on user actions. So the user only used one page and the hole site looked the same.

Now in ASP.NET there are user controls but that means that I need to copy HTML code to all pages to make them look the same, and if I need to change the layout I will have to change every single page. Then there are Master Pages that as far as I understand can only be used in ASP.NET V2 and its not out yet.

Templates are another way to go but I can't find a step by step tutorial that would explain how to use them.

Just to give an idea of what the end result should support - there will be a header, left and right menus/info sections including some forms, footer and the data section. in the data section I would want to be able to load different aspx pages depending on what is happening.

Thank you,
GenaKWhy wouldn't you just make one page and inject your ascx controls in as needed? This mean you don't have to worry about the html in all those pages to duplicate the look. Another good thing is the less aspx pages, fewer entry points. (A security thing) You can always inject your header/footer as controls, as well as left and right menus. These controls can be dynamic to adjust to the other ascx controls displayed. Check out DotNetNuke for a good example of what I am speaking of.
Hi,

Thanks for that ... the storenuke is the sort of a thing I'm looking for in functionality. So there are a bunch of controls that are loaded into "content" area in the middle depending on the QueryString values? Is it available as source?

Thanks again for the link.

GenaK
It use to be available, check outWillow TreeorStore Nuke. I think those are the correct URL's.

0 comments:

Post a Comment