Hi All,
I am getting Session Variable's value empty.What i am doing in code is in page load method creating menu on the page and
declaring session variable.
code:
when i click on the menu link its load the other page and i want to retrieve the session
value in the loaded page.But on the loaded page i am getting empty session value.
i am using 'IFrame' control in the page load to load the page when i click on the menu.
is this becaue of 'IFrame' or 'Menu' which i am creating.
Thanks
-John
I am getting Session Variable's value empty.What i am doing in code is in page load method creating menu on the page and
declaring session variable.
code:
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
sScriptApps = "<script type='text/javascript'> var menuItems = [" & vbCrLf & vbTab
sScriptApps = sScriptApps & "[" & """Invalid Licence""" & "," & """javascript:setURL" & "(" & "'" & "dmLicenseNotFound.aspx" & "'" & "," & "'" & "Invalid Licence" & "'" & ");""" & "]" & vbCrLf
sScriptApps = sScriptApps & "];" & vbCrLf
sScriptApps = sScriptApps & "dm_init();" & vbCrLf
sScriptApps = sScriptApps & "</script>" & vbCrLf
Session("LICENCE") = "1"
End sub
when i click on the menu link its load the other page and i want to retrieve the session
value in the loaded page.But on the loaded page i am getting empty session value.
i am using 'IFrame' control in the page load to load the page when i click on the menu.
is this becaue of 'IFrame' or 'Menu' which i am creating.
Thanks
-John
Comment