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