can't set a session variable from a user control

  • Thread starter Thread starter jc
  • Start date Start date
J

jc

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!
 
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>
 
Back
Top