473,395 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 8320
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

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

Similar topics

8
by: savvy | last post by:
I'm developing a shopping cart. I've assigned some Session values to Labels on the Master Page. The Basket panel which is small window for the basket items will be visible on every page if there...
4
by: Sam | last post by:
I have an asp.net 2.0 app that uses a sitemap, Master Page, and has several content pages. While this feature has simplified the process of creating a data-driven site menu, it does seem to have...
6
by: Matt | last post by:
On my master page i have build 5 link buttons. First Page I receive ID and set the ID in master page Property so i can do the work with it. How ever when i clicked to second button i lose this ID....
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
4
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
4
by: Ganesh | last post by:
I've couple of button on master page, based on user login from default.aspx i control visibility of controls. I thought once i hide the button from default.aspx it should be same for other pages...
6
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %>...
1
by: Ned White | last post by:
Hi, How can I access the Master Page's public methods from a web user control ? Inside the user control, i can see the Page.Master using the this.Page.Master. However it does not seem to be...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm trying to make my code as streamlined as possible, and add CSS file references dynamically when they are required, for example, if a page contains a webcontrol, then the related CSS...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.