Saturday, July 5, 2008

How write on Masterpage Label C# asp.net

To Access Master page Label from aspx page you have to do this:
Label lbl = (Label)this.Master.FindControl("Label1");
if (lbl !=null)
{
lbl.Text = "someText";
}

http://www.svdeals.com/

No comments: