title: CS0118: 'ServerSidePost.WebForm1.btnLogin' is a 'field' but is used like a 'method'
body: <p>For line 18 which is the asp:Button line I am getting the error  CS0118 saying that it is being used as a method instead of a field. </p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1"  method="post"  runat="server"&gt;
     &lt;div&gt;
          &lt;br /&gt;
          &lt;asp:TextBox ID="txtUserName" runat="server" Width="294px"&gt;&lt;/asp:TextBox&gt;
          &lt;br /&gt;
          &lt;br /&gt;
     &lt;/div&gt;
          &lt;p&gt;
              &lt;asp:Button ID="btnLogin" PostBackUrl="~/WebForm2.aspx" runat="server"       Height="101px" OnClick="btnLogin"&gt;&lt;/asp:Button&gt;
          &lt;/p&gt;
     &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>