Thursday, January 6, 2011

Finding master page controls from child page

MasterPage mobj = new MasterPage();
mobj = this.Page.Master;

HtmlGenericControl temp = (HtmlGenericControl)mobj.FindControl("p1");
temp.Visible = false;

No comments: