can't set a session variable from a user control

Discussion in 'ASP .Net' started by jc, Feb 27, 2008.

  1. jc

    jc Guest

    I've got a master page.

    under a content page is a user control.

    I attempt to set a set session variable under a grid row command
    event, but it does not take..

    I do a watch on the session variable and it never sets. I
    reponse.redirect to a another page and can tell it's never set as
    well.

    What's up with that?

    Thanks for any help or information!
    jc, Feb 27, 2008
    #1
    1. Advertising

  2. Hello JC,

    How do u set sessions? Any sample?
    Can u set session from other places?
    Are u sure that u have "EnableSessionState=true" on the <%Page...> settings?

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    J> I've got a master page.
    J>
    J> under a content page is a user control.
    J>
    J> I attempt to set a set session variable under a grid row command
    J> event, but it does not take..
    J>
    J> I do a watch on the session variable and it never sets. I
    J> reponse.redirect to a another page and can tell it's never set as
    J> well.
    J>
    J> What's up with that?
    J>
    J> Thanks for any help or information!
    J>
    Michael Nemtsev [MVP], Feb 27, 2008
    #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. Replies:
    1
    Views:
    1,071
    Bruce Barker
    Nov 14, 2005
  2. Mad Scientist Jr
    Replies:
    0
    Views:
    627
    Mad Scientist Jr
    Mar 22, 2006
  3. chowchho
    Replies:
    7
    Views:
    619
    Patrice
    Mar 28, 2008
  4. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    533
    Jonathan Wood
    Feb 2, 2010
  5. Jazzis
    Replies:
    2
    Views:
    235
    Jazzis
    Sep 23, 2003
Loading...

Share This Page