#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    4
    Rep Power
    0

    Question 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
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    New York
    Posts
    49
    Rep Power
    11
    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    4
    Rep Power
    0
    It is a good method , cheers

IMN logo majestic logo threadwatch logo seochat tools logo