Some direction on ASPX pages...

Niea

New Member
I am new to .aspx pages as I am sure alot of you are. Let me explain how I used to do our pages on my site. Basically I had a template that had about 4 include files in it. They all included .asp pages. One would check on the type of browser you had and load the correct style sheet from that. The other would add the header to the top of the page with the nav bar. One other file would add the footer with copyright info and a couple of links. Basically any html or other scripts would go in the middle of this page between these include files. Well, with .aspx pages, I do not think you can do it that way. Can you include other ,aspx pages within an .aspx page? I had an error when I tried this. My question is what is the best way to handle a nav bar and stuff like that so that you do not code it in every page. The include was what i did in asp pages, but in .aspx pages, what is the best approach? Can I create an object called navbar and have it be a string that returns the navbar in html to the calling program? <BR><BR>Thanks,<BR>PatrickInfact you can indeed include files in an aspx file. The code would be as below<BR>if the file is in the same directory use this:<BR><!-- #INCLUDE file="x.aspx"--> <BR><BR>eLSE USE<BR><!-- #include VIRTUAL="/pathReasearch "User Controls"!!! They are awesome!!!
 
Back
Top