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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include files in asp.net

Status
Not open for further replies.

ecalbert

Programmer
Dec 25, 2004
61
IL
I have a asp.net small application that I needed to do in .net and could not do in asp.

the rest of my files on the server are all in asp and I want to include files (for headers and footers and other parts of the page) that are .asp files.

Can I do this?
Can I mix asp and asp.net or at least include asp files in an asp.net page.

How?
 
The correct way is to recreate your include files as user controls, and drop the user controls on your page.
 
I don't really know asp.net and the rest of the site is in asp -- I want to use the same asp includes as the rest (so I don't have to change it each time)

is there anyway of doing it?
 
Your question is confusing. Are you converting to .net, or mixing some .net pages with asp pages in a .net project or are you just creating a .net project with all asp pages?
 
really mixing pages...
my whole site is in asp.

I have one page that I did in .net (and .net was neccessary as I used soap)

I want to include on the .net page the code that gets headers and footers which is all in regular asp.
 
directly this cannot be done. however u could use the HttpWebRequest class to request ur ASP pahe, take the HTML content and append it to a literal control...

Known is handfull, Unknown is worldfull
 
how? really about 10 includes.

My other idea is just to put the aspx page in an iframe on my asp page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top