Last post Dec 20, 2012 06:52 AM by pranathis
Dec 20, 2012 06:12 AM|pranathis|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 06:32 AM|oned_gk|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 06:52 AM|pranathis|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