469,362 Members | 2,441 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

accessing session in master page

i have a asp.net web application, where i have a master page.
when i am clicking on a button of a content page session is dtored . now i want to access this session variable in master page.

how should i do this.

thanx in advance.

neel
Dec 4 '08 #1
7 8014
Frinavale
9,735 Expert Mod 8TB
What does "dtored" mean?
I haven't had any problems accessing Objects stored in Session in my master page.

Please explain your problem in more detail and include what you have tried so far to solve the problem.

-Frinny
Dec 4 '08 #2
Curtis Rutland
3,256 Expert 2GB
@Frinavale
I'm guessing it's a typo of "stored".

You can access the session objects in the master page the same way you can in any other page. Just make sure to test for blank and null.
Dec 4 '08 #3
shweta123
692 Expert 512MB
Hi,

If your master page and other pages using that master page are from the same web application you can store/ retrieve the value in the session variables like this :

e.g.

You can store a string type of value into the session variable using following code :
Expand|Select|Wrap|Line Numbers
  1. Session("Master page") = some value
You can get the value from above stored Session variable like this using the following code :

Expand|Select|Wrap|Line Numbers
  1. Dim varSession as String = Session("Master page")
Dec 4 '08 #4
Frinavale
9,735 Expert Mod 8TB
@insertAlias
That still doesn't make sense to me......what would be sorted?
Dec 4 '08 #5
Curtis Rutland
3,256 Expert 2GB
stored, not sorted.

LOL =D
Dec 4 '08 #6
Frinavale
9,735 Expert Mod 8TB
@insertAlias
>>Blush<< !!

I should really try reading more often ;)
Dec 4 '08 #7
hi, i have got the answer , thanx.
sorry, i have misspelled, it is "stored".eg. session variable is stored .

thanks for ur feed back.
Dec 5 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Matt | last post: by
4 posts views Thread by Ganesh | last post: by
6 posts views Thread by =?Utf-8?B?SmF5IFBvbmR5?= | last post: by
1 post views Thread by Ned White | last post: by
5 posts views Thread by =?Utf-8?B?bXVzb3NkZXY=?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.