Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

call classic ASP page from ASP.net (C# ) application

Posted on 2011-03-07
7
Medium Priority
?
1,089 Views
Last Modified: 2012-05-11
Hi,

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

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

-- ASP.net-C#, Classic ASP
0
Comment
Question by:kishan66
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:kishan66
ID: 35060691
FYI, i am using ASP.net 2.0
0
 
LVL 33

Expert Comment

by:raterus
ID: 35062196
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.
0
 

Author Comment

by:kishan66
ID: 35074061
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 ASP.net.

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

Sorry : i am ASP.net armature player, but, trying to catch up.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

Expert Comment

by:raterus
ID: 35074167
IIS will run old ASP pages right next to asp.net 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.  
0
 

Author Comment

by:kishan66
ID: 35078691
i have a classic page Data.asp which reads data from XML file based on some conditions  at runtime.

now, i have created a ASP.net 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
0
 
LVL 33

Accepted Solution

by:
raterus earned 1000 total points
ID: 35082674
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.
0
 

Author Comment

by:kishan66
ID: 35085310
thanks raterus for all the help ...
let me try with our ideas...
sorry for troubling with classic ASP .
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question