R
Rob Venable
Hi everybody,
I'm moving from ASP to ASP.net and I'm wondering how this can be done in
.Net. I have multiple pages on my website and I don't want to have
multiple Headers and footers on each webpage so that if I make a
change...I don't have to do it on multiple pages. In ASP, I just put my
PrintHeader and PrintFooter information in subroutines and that works
fine but in .Net it's a little different because I use the code behind
page and I'd have to declare all form variables for all of my pages in
the same subroutine. What I usually do is:
call PrintHeader()
call Main()
call PrintFooter()
but that doesn't work well in .Net.
Same if I use an include file.
Any suggestions?
Thanks
Rob
I'm moving from ASP to ASP.net and I'm wondering how this can be done in
.Net. I have multiple pages on my website and I don't want to have
multiple Headers and footers on each webpage so that if I make a
change...I don't have to do it on multiple pages. In ASP, I just put my
PrintHeader and PrintFooter information in subroutines and that works
fine but in .Net it's a little different because I use the code behind
page and I'd have to declare all form variables for all of my pages in
the same subroutine. What I usually do is:
call PrintHeader()
call Main()
call PrintFooter()
but that doesn't work well in .Net.
Same if I use an include file.
Any suggestions?
Thanks
Rob