How to Access Master Page Control / ID in Child Pages in Asp.net[Solved]
How to Access Master Page Control / ID in Child Pages in Asp.net[Solved]??
_________________________________________________
Simple
Use this Namespace in Master Page
System.Web.UI.HtmlControls.HtmlGenericControl;
In Child Page
HtmlGenericControl getID= (HtmlGenericControl)Page.Master.FindControl("MainH").FindControl("IdFromMasterPage");
How to Access Master Page Control / ID in Child Pages in Asp.net[Solved]
Reviewed by Rejeti Praveen Kumar
on
00:44
Rating:
![How to Access Master Page Control / ID in Child Pages in Asp.net[Solved]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGSgt2gag1clm5p3X8sqSaQ6H8J8LC-2fpCA2QH5yppj9yG0MWYJEMA-Y6S96vKQg_w9NmSI8cGvntHD7OFSoByveQBTe3qCcxFYW2reeirX87B9paLeNH4PA0cc5bxx6dlAertD96KM4s/s72-c/confused-worker.png)
No comments: