I'm trying to display the value of a session variable in a label. I know the session variable exists because in my page load event I redirect the user to a different page if it's value is null. I want to display it's value in a label to test some things, but I keep getting an error whenever I try.
Here is my code:
Label:
<asp:Label ID="lblSessionTest" runat="server" Text="Label"></asp:Label>
How I'm trying to display it (in my page load event):
lblSessionTest.Text = Session("loggedIn"); ...
Go to the complete details ...