Use Session item (VB.net)
<%@ Page Language="vb" %> <html> <head> <script runat="server"> Sub Page_Load() Session.Item("foo") = "foo" Session.Item("foo2") = "foo2" Message.Text = Session.Item("foo") & "</br>" Message.Text &= Session.Item(1) End Sub </script> </head> <body> <asp:label id="Message" runat="server"/> </body> </html>