Link to home
Start Free TrialLog in
Avatar of Wigging
WiggingFlag for United States of America

asked on

access session in content page

I click a link button in my master page and it creates a session variable.  
then inside my contentpage there is a datalist and i want to show or hide based on value of session variable.  

it seems that session is created after the load of content page because it is not being recognized.  

is athere a trick for this to work?  
Avatar of Alfred A.
Alfred A.
Flag of Australia image

Hi,

I am not sure if I got your question right, you can try creating a session variable in the link button click event and then you can then access the session variable in the page_load of your content page.

Please clarify further if I didn't understood your question properly.  
ASKER CERTIFIED SOLUTION
Avatar of guru_sami
guru_sami
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nasir Razzaq
I think its down to the sequence of events.

http://msdn.microsoft.com/en-us/library/dct97kc3.aspx