Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

We have one Master page in my website.
We have placed on one label under
section to show user-name consistently.
But when we log on my login page and redirect to the desired page, the label-value
got reset.

Kindly give me any idea.


--- Anil Kumar
Posted
Comments
[no name] 28-Feb-12 6:21am    
It depends on how you set the value of the Label. Show your code.

The label value will have to be set from the Load event of the Master Page code, and not touched under any other page.
 
Share this answer
 
Hi there..
Store the label value in session and fetch it inside Page_Lode event and set it to that label text.. This is the solution of your problem..
All the best..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900