My company's intranet site is written in asp.
Each page begins with <!--#include file = "top.asp" --> to provide a standard heading.
I want to write .net pages, but I don't want to convert the top.asp file to .net
What do I do?
Phil
woah woah woah...I've never mixed the two myself, but I remember Paul (link9) posting one time about how include files DO still work within asp.net.
That being said though, if you want to put the standard header into a control that can be reused (which is preferred over an include file anyway IMHO), its simple:
- create a user control
- make the heading look the way you want it in the user
control's designer
- on your main page, drag and drop the user control onto
the page's designer (it'll just be a grey box)
Ta-da! your user control is available for use now. The only thing you may need to do is to put it within a table cell or some other container so that it renders the way you want it to. You'll just have to play around a bit.
If you have some existing asp pages throughout the app, and you arne't sure if you're going to do a full .NET conversion, I'd really look into the whole asp/asp.net running side by side issue a bit more.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.