Click to See Complete Forum and Search --> : Including pages like PHP ?


Andy22
November 9th, 2005, 05:35 AM
Holas,

I wonder if its possible to do this in asp.net?
So you can create one design page and just include all other pages
without being harmed if you don't like your page design anymore.

I know its possible to include html code with <!--#include file="x">
but I can't get it work properly...

Maybe there is a better solution ?

Thanks in Advance,
Andy

m3rlinez
November 10th, 2005, 08:30 AM
There is no "include" in ASP.NET anymore.

One solution is to create a UserControl (header, footer) and insert it in every page. So when you want to change your design just change the header and footer UserControl.

I've also heard that there is MasterPage feature in ASP.NET 2.0 that may solve this kind of problem. But I have no experience with it.