call classic ASP page from (C# ) application


can anyone pls guide me in call a classic ASP page from application.
i have a working code in classic ASP page.
I want to use that in newly build application.

also i want to make this classic ASP page as default page.

--, Classic ASP
Who is Participating?
raterusConnect With a Mentor Commented:
In that case, I would rename the .asp page to .aspx, it should work, perhaps with minor tweaking.  That way, the page will run under .net and you'll have the benefit of forms authentication.

As far as keeping the "logout" button, that really depends on where that button is being placed.  Once you rename the page to .aspx, it is now a .net page, and you can add master pages, code behind, etc, it's just some sections will look very classic ASP.
kishan66Author Commented:
FYI, i am using 2.0
What do you mean "call"?  The page should still run under classic ASP if you request it.  You also have the option to rename the page from .asp to .aspx if you want a quick and dirty "conversion" to run under .net.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

kishan66Author Commented:
hi Raterus,
firstly, Thank you for the reply

I dont know in what sense you mentioned "dirty conversion". I dont even care for that matter.
All i want is to reuse the classic ASP page in my newly build ASP.net2.0 application.

i know all the functions in classic ASP doesnt not/(need not) work with

Pls advice me the best way i can resue it, if possible..

Sorry : i am armature player, but, trying to catch up.
IIS will run old ASP pages right next to pages, no changes needed.  However they can't talk to each other, except through cookies, posted values, and querystring.  

I can help more if you can tell me specifically what you are trying to do, or what you think you are not able to do.  
kishan66Author Commented:
i have a classic page Data.asp which reads data from XML file based on some conditions  at runtime.

now, i have created a website(simple) using formAuthentication to Authenticate users.
once user is Authenticated,
->i want to redirect the user to Data.asp.
->At the same time, i dont want to loose the "Logout" button option when redirected to Data.asp.

hope i make some sense.
( i know i can build the same Asp page in C# but want to save time...thats all)

appreciate ur help
kishan66Author Commented:
thanks raterus for all the help ...
let me try with our ideas...
sorry for troubling with classic ASP .
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.