Helpful Information
 
 
Category: .Net Development
Help? How to get the sesson value from the programs by asp to programs in .net

Now , I want to write some web pages by .net and want to make an unique project with the old web pages by asp , the question is that i cant get sesson value from the programs by asp to programs by .net . What will I do ?
_______________________________________________________________
[c#.net]
string what=Session["what"];

[asp]
session("what")="is that"
-----------------------------------------------------------------------
(Maybe .net using the Hashtable )

Sorry for the poor English, and waiting for the help .thanks

Session variables are not compatible between the ASP and ASP.NET. The only thing you can do would be to call the normal ASP page, which sets your session variables, then have that page call an ASPX page, passing the values in the querystring, then create the same session variables in the new ASPX page too. Now you have two copies.
-Dave

It is a good method , cheers










privacy (GDPR)