CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Jul 2004
    Posts
    5

    Red face Session Variables

    How do I set a session variable in the .aspx.vb file and then request it in
    the .aspx page to set a dynamic URL...:

    =====================================
    Here is how I'm setting it in the .aspx.vb file but it is NULL

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Session("PartID") = "testpartid"

    End Sub

    =====================================
    Here is what I have in the .aspx (but the id is null)
    www.test.com?action=go&id=<&#37;#Session("PartID")%>">
    Last edited by fitchic77; October 16th, 2010 at 11:50 AM.

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

Featured