In my Asp.net application, I have A Master Page, which has a Label & its id is: "masterpagelabel";
now i want to change the Text of this Label When the Content Page Loads
My code is:
Expand|Select|Wrap|Line Numbers
- void Page_Load(...........)
- Label mylabel=(Label)Master.FindControl("masterpagelabel")
- if(mylabel !=Null)
- {
- mylabel="Details";
- }
- else
- {}