Our application is combination of classic asp and asp.net. Can we access same application variable in classic asp which is defined in asp.net .
Asked
Active
Viewed 188 times
6
-
You can have .NET web application with .asp files in it. What do you mean by state ? Session or some emulation of shared static variables ? – Ondrej Svejdar Aug 26 '15 at 11:10
-
state here means, application state. If i define an application variable in asp.net, can i use that in classic asp. – Aug 26 '15 at 16:16
2 Answers
4
No, if the classic asp files are getting run separate from the asp.net web application, they will run in different address space and will not share the application or session context.

Lucas Holt
- 3,826
- 1
- 32
- 41
-
Is application state context can be shared if classic asp files are running on asp.net web application? @Lucas Holt – Aug 31 '15 at 08:14
-
They're not running on the same "web application" because the handlers for .asp and .aspx are different in IIS. – Lucas Holt Sep 01 '15 at 14:02
1
No, I think they will run in a different address space and will not share the application or session context. You can use the given link to understand How to Share Session State Between Classic ASP and ASP.NET: https://msdn.microsoft.com/en-us/library/aa479313.aspx

DigitalDan
- 2,477
- 2
- 28
- 35

Jinto John
- 365
- 4
- 22