Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to use Asp and Asp.Net on the same page

Status
Not open for further replies.

abds

Programmer
Dec 13, 2000
46
US
My company's intranet site is written in asp.
Each page begins with <!--#include file = &quot;top.asp&quot; --> 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
 
You are stuck with one or the other. Iis will either send the request to the asp engine or the asp.net worker engine.

imho Bite the bullet and go all .net !
 
What I'd like to do is hide the top.asp in a control or something and have it execute in a separate thread. I just dont know how to do it.
 
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.

hth

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top