How do I handle this error : No overload for 'SQLDisplay_Date_records' matches delegate 'System.EventHandler'
<p>So I basically have two textboxes in the aspx file which get populated by dates (using the jquery datepicker) as given below </p>

<pre><code>Start Date: &lt;asp:TextBox ID="TxtDatepicker_start" runat="server" Width = 125px &gt;
  &lt;/asp:TextBox&gt;

  &amp;nbsp;&amp;nbsp;End Date: &lt;asp:TextBox ID="TxtDatepicker_end" runat="server" Width = 125px &gt;
  &lt;/asp:TextBox&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;asp:Button ID="Button_daterecords" runat="server"  Text="Show records"  OnClick ="SQLDisplay_Date_records" /&gt;&lt;br /&gt;
</code></pre>

<p>However when I try to determine what  has been stored in the text boxes for further processing in the code behind using this function</p>

<pre><code>protected void SQLDisplay_Date_records()
        {
            string date1 = TxtDatepicker_end.Text;
            string date2 = TxtDatepicker_end.Text;
        }
</code></pre>

<p>I am getting this error </p>

<pre><code>No overload for 'SQLDisplay_Date_records' matches delegate 'System.EventHandler'
</code></pre>

<p>Can someone explain this to me ,I apologize for the naive question but I am still making my way around with ASP.NET and C#</p>
