?
Solved

asp.net vb.net keep a label in a masterpage ever

Posted on 2009-04-03
3
Medium Priority
?
290 Views
Last Modified: 2012-05-06
I need keep a message label in a master page ever. But when pass to a new page the masterpage lose  the label content. How can keep the message label on every pages and only change when i modify.
0
Comment
Question by:rflorencio
  • 2
3 Comments
 
LVL 4

Expert Comment

by:y0usuf
ID: 24062323
Where do  you set the label text from? If you are setting the label text from the  codebehind of masterpage you should not loose the label text. Can you provide more details on the issue, because it is kinda strange that you are not seeing the controls residing in the master page.
0
 

Author Comment

by:rflorencio
ID: 24062597
For ex. i am in the default.aspx page and write a message in a label control in masterpage. Then when i move to another page like products.aspx the message i had write in master page disappears.
0
 
LVL 4

Accepted Solution

by:
y0usuf earned 2000 total points
ID: 24062891
yep It will disappear because you did it from default.aspx. Master page is just like a user control.
What you can do is use session to store the label text . And then In the page_load event of master page write the text from the session to the label.  You need to save text into the session variable when you write message from the page.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question