Anirudh
Anirudh

Reputation: 591

Calling ASP pages within ASP.NET site

Scenario : On a ASP.NET site, we have a login page (login.aspx).

Within login.aspx.cs based on the person who logs in, sometimes we need to redirect to an ASP page. Currently these ASP pages are on a different site (old ASP site) but I want to copy over 3 ASP pages within the ASP.NET site. Is it possible? Can I create a new virtual directory (or just directory) and place these ASP pages?

OR

Do I need to have these ASP pages stay where they are and from ASP.NET site (login.aspx.cs) I will need to issue Response.Redirect to that old ASP site?

Please suggest.

Upvotes: 1

Views: 1673

Answers (2)

Eonasdan
Eonasdan

Reputation: 7765

your .net application (I should say) IIS will still execute the asp classic pages, however asp.net and asp classic do not share session variables. I had to write two in between pages that converted asp.net session values down to asp classic and vice versa for an application I was working on with a similar situation.

Upvotes: 3

Jelle Capenberghs
Jelle Capenberghs

Reputation: 794

I don't know if you can redirect to pages outside your own application/website, but you can copy the pages from the other website to your own website. From your login page, you can then redirect to the appropriate page in your own application/website. If you copy the pages, it might be a good idea to change the old namespace of the pages to a namespace suitable for your own application/website

Upvotes: 2

Related Questions