| | |
Session Variable - Question
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
hi to all, I have a page that contains two frames (before you start telling me that frames are not good, I know but this is the requierement from my course, what I can do?), anyway I have a main page that contains leftframe.aspx and rigthframe.aspx, everything is working ok until I start using the the Session variable, it is possible to use this variable between frames?
I did the following:
leftframe.aspx(in the C# code):
leftframe.aspx(in the C# code)
Do I need to do some settings before using the Session varaible, when I output the varaible is always 'null', look like noone set this variable before.
Thanks in advanced
I did the following:
leftframe.aspx(in the C# code):
ASP.NET Syntax (Toggle Plain Text)
Session["test"] = "Test String";
ASP.NET Syntax (Toggle Plain Text)
if (Session["test"] != null) mystring = (string)Session["test"];
Do I need to do some settings before using the Session varaible, when I output the varaible is always 'null', look like noone set this variable before.
Thanks in advanced
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 7
Check this out:
This may be a security limitation in IE.
This may be a security limitation in IE.
•
•
Join Date: Dec 2008
Posts: 104
Reputation:
Solved Threads: 18
Make sure that the code that store session value on leftframe.aspx is executed first before the code on rightframe.aspx is trying to access that session value. Otherwise it should work. Can u tell me on which events these two code snippets belongs?
Last edited by Aneesh_Argent; Dec 30th, 2008 at 1:29 am.
![]() |
Similar Threads
- ASP.NET - session objects Problem (ASP.NET)
- Disable link. Quick question for a quick answer. (ASP)
- survey for school grads... Another question (PHP)
- question&please answer (ASP.NET)
- Creating a multi-dimensional Session variable (PHP)
- when to use session and cookies variables ? (ASP)
- Redirecting - Newbie Question (PHP)
- Can javascript do session variables? (JavaScript / DHTML / AJAX)
- ASP.NET / C# Dynamic Control (ASP.NET)
- ASP.NET: Context.Items.Add question (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Update client database from Web server database
- Next Thread: Can we use view Instead of Query
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox child class compatible complex content contenttype control countryselector courier database datagrid datagridview datalist deployment development dgv dialog dropdown dropdownmenu dynamic dynamically edit editing embeddingactivexcontrol feedback fileuploader fill findcontrol flash flv folder form gridview gudi iis image javascript languages list maps menu mobile mssql nameisnotdeclared novell opera order parent problem ratings redirect refer registration relationaldatabases reportemail response.redirect rows search security select serializesmo.table sessionvariables silverlight smoobjects software sql ssl tracking treeview typeof validatedate validation vb.net vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xsl





