Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session variables in code behind file
Message
From
26/08/2011 15:02:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Visual Studio
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01521931
Message ID:
01521945
Views:
34
>Hello all,
>
>I just successfully converted my web application to VS 2010 from VS 2008 and found out that when there are session variables in the code behind file for a web form, the design form view encounters an error in rendering the page on the design form. The following link explains this:
>
>http://blogs.msdn.com/b/webdevtools/archive/2010/04/15/rendering-issue-in-visual-studio-2010-when-accessing-the-session-state-in-the-oninit-method.aspx
>
>I would like to know how any of you who have encountered this have addressed this issue.
>
>TIA
>
>Bob

Is your reference to session in the OnInit method? Did you try the work around suggested here? I have not encountered it but most likely I do not have any cases of session in the OnInit. Can you put it somewhere else?
Timothy
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform