Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Object Reference not set to an instance of an object

$
0
0

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&#39;m getting the error &quot;object reference not set to an instance of an object &quot;. 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&#39;m facing this type of problems in previously.

But i&#39;m simplly calling the insert click event there is no data in that , why it&#39;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.....


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>