Results 1 to 5 of 5

Thread: Session Variables aren't retrieved during Postback

Hybrid View

  1. #1
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Could you post the entire code of the page, aspx.vb along with the aspx ?

    I also wonder if your class is not properly serializing. If it doesn't serialize properly it won't be stored in viewstate. However, ASP.NET compiler would most likely error when you attempt putting Session("user") = l.

    This is what I would do, use
    VB Code:
    1. Session.add("User","LOGGEDIN")
    in your login code, then in the postback, put
    VB Code:
    1. dim st as string = Session.Item("User")

    Put a breakpoint on the line right after you grab the Session.Item("user"), and see if st = "LOGGEDIN". If it does, we know its not some weird web configuration problem.

    We would then ascertain your class does not properly serialize to a string (XML).
    Last edited by nemaroller; Mar 7th, 2004 at 07:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width