Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / June 2007

Tip: Looking for answers? Try searching our database.

Session Variables and Event Sequences

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmbbrwd - 28 Jun 2007 14:31 GMT
I am just beginning to learn ASP.Net and am not connecting on
something related to session variables.  Without concern over whether
or not session variables are appropriate here is my disconnect.  I
would like to be able to read the value of a session variable when the
page loads as a result of postback.  The trigger for storing the
variable is some control event such as a selectedindexchanged event.
The sequence of events (page load before control events) seems to
leave me one trip behind meaning that the variable is not stored to
the session until after the page is reloaded, thus defeating the
purpose of having access to that variable on the page load.  What am I
missing here?

Thanks.

mmbbrwd
kurt.kurtsmith@gmail.com - 29 Jun 2007 04:16 GMT
> I am just beginning to learn ASP.Net and am not connecting on
> something related to session variables.  Without concern over whether
[quoted text clipped - 11 lines]
>
> mmbbrwd

The following event will fire after the control events have fired:

protected void Page_LoadComplete(object sender, EventArgs e)

Hope this helps.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.