Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 20, 2012 05:52 AM by pranathis
Dec 20, 2012 05:12 AM|LINK
this is my source code
asp:LinkButton ID="btninsert" runat="server" onclick="btninsert_Click">
this is my code behind
protected void btninsert_Click(object sender, EventArgs e)
when i click on insert link button i'm getting the error "object reference not set to an instance of an object ". As per my knowledge this error causes when there is no data whatever we pass the parameters and when there is no data in a datatable
in that cases i'm facing this type of problems in previously.
But i'm simplly calling the insert click event there is no data in that , why it's showing this error can any one tell me the reasons to get this error.
and help me how to overcome this issue now...
Thanks in Advance.....
Dec 20, 2012 05:32 AM|LINK
Maybe the problem not from your click event, but from page_load event.
If you bind gv in page load event, posible the error from databound event. I think the problem not from the button.
Dec 20, 2012 05:52 AM|LINK
May be this is the reason i think i will check out my code and then if i face any problem again i caontact u thank u