Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a classic asp website, onto which I am adding an (.aspx) page. Is it possible to include my existing asp header (header.asp) and footer (footer.asp) files on my aspx page?

I don't want to convert the page to a user control, because those pages include other asp pages with asp code on them.

Christian Amado 10-Aug-12 8:12am    
Yes, is possible.
[no name] 10-Aug-12 8:15am    
Please give me some example..

Hell no. ASP.NET does not share session or talk to ASP. That's because ASP was so bad, they started again.
Share this answer
You could create a frameset that points to the header/footer and show those on your ASPX page. However, that is a really ugly hack. I recommend you just buckle down and perform the conversion.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900