ASP.NET VB Session Variables 
Author Message
 ASP.NET VB Session Variables


I have a tricky problem.

I have a page whick contains a form which transfers a userid and password
to the server.

It looks something like this:

<FORM id="loginform" runat="server">
<ASP:TextBox ID="strNickname" MaxLength="30" Columns="12" RunAt="server" />
<ASP:TextBox ID="strPassword" MaxLength="30" Columns="12"
TextMode="Password" RunAt="server" />
<ASP:ImageButton ImageUrl="images/icon/icon_go_sidebar.gif" RunAt="server"
BorderWidth="0" onClick="LoginButton_Click" />
<ASP:TextBox ID="action" Text="login" Visible="false" RunAt="server" />

The sub LoginButton_Click sets some Session-Variables.

No comes the strange part. After the page comes back from the submit, the
session variables are not available. I enabled a trace and can see the
variable and the correctly assigned value there. When I submit the page a
second time, the session variable is available.

I run this page with code behind.

Any hint welcome.


Sat, 20 Aug 2005 16:51:04 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ASP - Session Variables and Querystrings

2. Setting ASP Session variable

3. Read as SESSION variable created with VBScript in an ASP

4. ASP - Session Variables and Querystrings

5. Changing ASP session variables using javascript procedure

6. Using ASP Session Variables

7. losing session variable in ASP

8. ASP: Session Variables

9. Session("Variable") as Array ...ASP

10. ASP Session variables on VBScript event-fire routines

11. ASP Session Variables / Arrays

12. ScriptingContext object and asp session variables


Powered by phpBB® Forum Software