title: Enter login form ASP.Net hind bottom login
body: <p>I am creating a login page by input ID and password and enter for login. I hind bottom login and use script but it's not working. When I show bottom it work but I don't want to show bottom please help me </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;tr&gt;
    &lt;td style="width:50%"&gt;
      &lt;asp:Label ID="lblUser" runat="server" Text="ID:" Font-Bold="True"&gt;&lt;/asp:Label&gt;
      &lt;asp:TextBox id="txtuserName" placeholder="Username" class="form-control" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;/td&gt;
    &lt;td style="width:50%"&gt;
      &lt;asp:Label ID="lblPassword" runat="server" Text="Password:" Font-Bold="True"&gt;&lt;/asp:Label&gt;
      &lt;asp:TextBox runat="server" id="txtpassword" placeholder="Password" class="form-control" OnTextChanged="txtpassword_TextChanged" AutoPostBack="true"&gt;&lt;/asp:TextBox&gt;
      &lt;asp:Button ID="btnlogin" runat="server" CssClass="hidden" /&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
    $('[id*=txtpassword]').keypress(function(e) {
      if (e.which === 13) {
  
        $('[id*=btnlogin]').click();
      }
    });
  });
  </code></pre>
  
  <pre class="lang-csharp prettyprint-override"><code>protected void btnlogin_Click(object sender, EventArgs e) { 
    // ...
  }
  </code></pre>