Session Variables and Event Sequences

Discussion in 'ASP .Net Web Controls' started by mmbbrwd, Jun 28, 2007.

  1. mmbbrwd

    mmbbrwd Guest

    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
     
    mmbbrwd, Jun 28, 2007
    #1
    1. Advertising

  2. mmbbrwd

    Guest

    On Jun 28, 6:31 am, mmbbrwd <> wrote:
    > 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


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

    protected void Page_LoadComplete(object sender, EventArgs e)

    Hope this helps.
     
    , Jun 29, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Earl Teigrob

    Global Session Variables and Session State

    Earl Teigrob, Dec 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,276
    Alvin Bruney
    Dec 17, 2003
  2. Replies:
    1
    Views:
    934
  3. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,291
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  4. Replies:
    9
    Views:
    957
  5. Jazzis
    Replies:
    2
    Views:
    250
    Jazzis
    Sep 23, 2003
Loading...

Share This Page