Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
DataList Datalist1= (DataList)FormView1.FindControl("Datalist1");
error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

please help me!
Posted
Comments
Rajesh waran 24-Dec-14 4:52am    
can you post your code? by using Improve Question. bcoz this is not so clear.If you want to use find control,you have to tell about your parent controls.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900