P
Pete via DotNetMonster.com
Hi,
I'm trying to use a Session variable to pass info from one page to another
but it doesn't seem to go to the next page. I tested a very basic script:
Page1
-----
<%@ Page Language="VB" %>
<script runat="server">
Sub page_load()
Session("name") = "James"
End Sub
</script>
<html>
<head>
</head>
<body>
Hello <%=Session("name")%>!
</body>
</html>
Page2
-----
<body>
Hello <%=Session("name")%>!
</body>
The name doesn't show up on the second page. Not sure what I'm missing.
Thanks
I'm trying to use a Session variable to pass info from one page to another
but it doesn't seem to go to the next page. I tested a very basic script:
Page1
-----
<%@ Page Language="VB" %>
<script runat="server">
Sub page_load()
Session("name") = "James"
End Sub
</script>
<html>
<head>
</head>
<body>
Hello <%=Session("name")%>!
</body>
</html>
Page2
-----
<body>
Hello <%=Session("name")%>!
</body>
The name doesn't show up on the second page. Not sure what I'm missing.
Thanks