can't set a session variable from a user control

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!
 
M

Michael Nemtsev [MVP]

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top