Hi ,
this is my source code
<asp:LinkButton ID="btninsert" runat="server" onclick="btninsert_Click">
Insert Data</asp:LinkButton>
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.....