need detail info about session [modified]
-
Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event
If CheckBox1.Checked = True Then
session("value") = "chkT"
Else
Session("value") = "chkF"
End Ifin page2.aspx.cs under form_load event
Dim check As String = Session("value")
If (check = "chkT") Then
code goes here
ElseIf (check = "chkF") Then
code goes here
End Ifnow the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..
modified on Tuesday, July 6, 2010 6:17 AM
-
Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event
If CheckBox1.Checked = True Then
session("value") = "chkT"
Else
Session("value") = "chkF"
End Ifin page2.aspx.cs under form_load event
Dim check As String = Session("value")
If (check = "chkT") Then
code goes here
ElseIf (check = "chkF") Then
code goes here
End Ifnow the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..
modified on Tuesday, July 6, 2010 6:17 AM
-
Hi, i'm using session in my application. and code is like this in page1.aspx.cs under button_click event
If CheckBox1.Checked = True Then
session("value") = "chkT"
Else
Session("value") = "chkF"
End Ifin page2.aspx.cs under form_load event
Dim check As String = Session("value")
If (check = "chkT") Then
code goes here
ElseIf (check = "chkF") Then
code goes here
End Ifnow the problem is the strings chkT or chkF are not taken by session in the "value", don't know why it is not taking. though it works now. if i restart the PC i'm getting the same problem.. please solve this problem. or atleast tell me are there any other ways to pass the value to page2.aspx from page1.aspx with out displaying that page2.aspx on browser..
modified on Tuesday, July 6, 2010 6:17 AM
Check the link , this will help you to find all other ways to pass value between pages ASP.NET State Management [^]
raju.m
-
Check the link , this will help you to find all other ways to pass value between pages ASP.NET State Management [^]
raju.m
-
i'm using sessions. but it is not working or i am tellign that session is not storing the value.... :(
this will help you to understand Session in ASP.Net ExploringSession[^]
makhaai