There is no single great way to share session state between ASP and ASP.NET.
But that doesn't mean you don't have options.
Here are some common ways:
* Store the data in a common database
* Pass data from page to page on the QueryString
* Store the data in cookies
* Use a 3rd party session sharing component
(Here's one:
http://www.consonica.com/solutions/d...tch/index.html)
* Use COM Interop to provide an object that both sides can access that
handles the data.
Here's an example of the latter:
http://msdn.microsoft.com/library/de...rtToASPNET.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at
http://www.able-consulting.com
"Hardik Shah" <hg********@InvalidEmail.com> wrote in message
news:m1********************************@4ax.com...
Hi,
I am calling an ASP.Net page from an ASP classic application but need
the .Net page to have access to ASP classic's session variables. I am
using HTTPWebRequest to call ASP classic page which could then return
the session values. But the values are always blank. If I do a
Response.Redirect() to call the ASP page, it returns the values okay.
But I cannot do a Response.Redirect() as I just need to access some
session variables and retain the control with the .net page.
Not sure why HTTPWebRequest is not returning the values. Any ideas?
May be I can forego HTTPWebRequest and use hidden textboxes on the ASP
page that calls the .Net page. Is there a way for .Net page to refer
to those textboxes on ASP page?
Thanks a bunch!
Hardik