Page.FindControl(string id)

 

Hi, if you have searched for the problem, Page.FindControl(string id) raises a NullException in ASP.NET then you came to the right place.

The answer is simple

try the following…

Control c = this.Page.Master.FindControl(“ContentPlaceHolderID”);

c.FindControl(“The ID of the control you search for”);

 

Read the below link for the detailed information

http://forums.asp.net/t/1000865.aspx/1

Advertisements

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: