Monday, March 26, 2012

object reference not set to an instance of an object

When I am trying to add a control to my page it show me a error message "object reference not set to an instance of an object".

how can i overcome this??


Hi niroj

What controls are you trying to add to your page?

Can you post us some code so that we can see what you are trying to do.

Regards

ScottyB


Main reason of this error is NULL, But if you post the code then it is better for us to discuss on this issue.

Thanks


Post your code...


One common mistake is forgetting to initialize objects.

Declaring an object is not creating it. Use proper constructor to initialize the object.

If you have already done that let us know.

Varun

0 comments:

Post a Comment