Click to See Complete Forum and Search --> : Session Variables


fitchic77
July 27th, 2004, 08:02 AM
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=<%#Session("PartID")%>">

fitchic77
July 27th, 2004, 08:11 AM
in .aspx.vb file:
Me.Session("PartID") = Me.txtPartID.Text


in .aspx file
<a href="http://localhost/index.aspx?action=parts&form=resources_parts_locations&id=<%=Session("PartID")%>">