Can I run ASP and ASP.NET pages at the same time in the same web application?

In the process of upgrading a web application from ASP to ASP.NET, I want to insert one of the new files into the old application to check something - is this a crime against the mind?

+4
source share
6 answers

Yes, but they will not share session memory. I have an old ASP website and replaced the main page with an asp.net page with customization of the main page / content. I use asp.net to send emails instead of the old asp / com components.

One of the tasks of collaboration over a session is to create a bridge page that exchanges session data using a form message or request. http://msdn.microsoft.com/en-us/library/aa479313.aspx

Also, if you simply added an asp page to an existing asp.net application, it will not start. You will need to configure the entire application in IIS so that the ASP and ASP.NET pages run the same as on the server.

+1
source

ASP and ASP.NET work perfectly together. I am surprised at how important people are in terms of session state. Most of the new ASP.NET that I migrated to an existing ASP site does not need any session state stored in the ASP application. Having said that, I am not using session state at all in ASP or ASP.NET.

The only difficult thing is to find a common login mechanism, I do this using a custom session cookie and a record in the database.

+1
source

Yes.

This is just not a good way to do something. But it will work well enough until you try to share session states and so on. Then you will need to do extra work.

0
source

No, you cannot put an ASP.NET file in a classic ASP application - it will not run.

You can go the other way and put the classic ASP file in an ASP.NET application.

0
source

You may have an ASP application message on an ASP.NET page.

0
source

The short answer is yes, but it is a very painful experience. ASP pages and ASP.Net pages will not use a shared session, and connecting these two devices is not as easy as it could be.

0
source

Source: https://habr.com/ru/post/1277391/


All Articles