I'm trying to pass some variables from one page to another via the session state and then post those variables to labels on page 2. When I try to write the code for my labels on page2, I get an error of "Declaratio n expected"
Here is my code from that page:
Am I missing a page_load event handler or what am I missing?
Thank you,
Doug
Here is my code from that page:
Code:
Partial Class Default2
Inherits System.Web.UI.Page
Dim firstname As String = CType(Session.Item("FirstName"), String)
Dim lastName As String = CType(Session.Item("LastName"), String)
Dim DateOfBirth As String = CType(Session.Item("DateOfBirth"), String)
Dim Age As String = CType(Session.Item("Age"), String)
Thank you,
Doug
Comment