Wierd SessionState problem (again)

Discussion in 'ASP .Net' started by Dean, Aug 30, 2003.

  1. Dean

    Dean Guest

    PageOne.aspx has an image control. The imageURL of the image control points
    to ImagePump.aspx.

    ImagePump.aspx gets a bitmap out of a SQLServer database, puts in into a
    bitmap object and does a:

    myImage.save(response.outputstream, ImageFormat.jpeg).

    This code works however, on this page I refer to a sessionvariable that is
    accessable from all of my other pages. But that session variable is not
    accessable from this page - it is nothing.

    The only difference between this page and other aspx pages is that this page
    never gets explicitly requested. The code in the page_load gets executed
    however. It must be getting executed when the image.imageurl property on
    pageone.aspx references it.

    The mystery is why can't this page reference session variables?
    [I am sure it has been populated and I am sure that sessionstate is enabled
    for this page]
    thanks,
    Dean
    Dean, Aug 30, 2003
    #1
    1. Advertising

  2. Dean

    Dean Guest

    figured out wierd problem and learned something

    When stepping through code you are not always stepping through in the
    sequence the code is executed. A component on a page got it's property
    before another page set session state. But when I stepped through the
    sequence was reversed.
    Dean

    "Dean" <> wrote in message
    news:...
    > PageOne.aspx has an image control. The imageURL of the image control

    points
    > to ImagePump.aspx.
    >
    > ImagePump.aspx gets a bitmap out of a SQLServer database, puts in into a
    > bitmap object and does a:
    >
    > myImage.save(response.outputstream, ImageFormat.jpeg).
    >
    > This code works however, on this page I refer to a sessionvariable that is
    > accessable from all of my other pages. But that session variable is not
    > accessable from this page - it is nothing.
    >
    > The only difference between this page and other aspx pages is that this

    page
    > never gets explicitly requested. The code in the page_load gets executed
    > however. It must be getting executed when the image.imageurl property on
    > pageone.aspx references it.
    >
    > The mystery is why can't this page reference session variables?
    > [I am sure it has been populated and I am sure that sessionstate is

    enabled
    > for this page]
    > thanks,
    > Dean
    >
    >
    >
    Dean, Aug 30, 2003
    #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. Scott M.

    Re: Wierd SessionState Problem

    Scott M., Aug 30, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    399
    Scott M.
    Aug 30, 2003
  2. amit
    Replies:
    0
    Views:
    364
  3. che
    Replies:
    2
    Views:
    468
  4. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    309
    Maric Michaud
    Jun 9, 2006
  5. Ò»Ê×Ê«

    A design problem I met again and again.

    Ò»Ê×Ê«, Apr 1, 2009, in forum: Python
    Replies:
    24
    Views:
    681
    Dennis Lee Bieber
    Apr 4, 2009
Loading...

Share This Page