Frequently Asked Interview Questions

How can you access master page control in content page?

Use FindControl() method to access any control of master page in content
page, code shown below.

//Get reference of Content place
ContentPlaceHolder cph = (ContentPlaceHolder) Master.FindControl(“ContentPlaceHolder1”);
Control con = cph.FindControl(“controlname”);

Most Visited Pages

Home | Site Index | Contact Us