include ASP file in C#??

  • Thread starter teddy b via DotNetMonster.com
  • Start date
T

teddy b via DotNetMonster.com

Hi,

Anyone know there is a way to include ASP file in C#? My application coded in
C#, then need to include another application coded in classic ASP. Any
solution for this? Not planning to convert classic ASP application into .Net
yet but need both running at the same time.

Thank you.
 
S

S. Justin Gengo

Teddy,

You could place a literal control onto the page and then use the WebRequest
object to get the code the asp page produces. Place that response string
into the literal and it will appear within your page. You may have some work
to do though if the asp page in question has form tags in it. Form tags
within the same page could stop your .net page from working. So you may have
to parse the response string and remove code that breaks your .net page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top