title: simple html login form using C#.net
body: <p>I am start to learn simple C#. 
  Please help me How to pass the HTML parameter to .ASPX page to .CS page?</p>
  
  <p><strong>INDEX.axpx PAGE</strong></p>
  
  <pre><code>     &lt;div class="title"&gt;
                              &lt;h4&gt;
                                  User Login&lt;/h4&gt;
                              &lt;div class="option"&gt;
                                  Sign up for free &amp;raquo;&lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="content"&gt;
                              &lt;form method="post" runat="server"&gt;
                              &lt;div&gt;
                                  &lt;input type="text" runat="server" id="username" name="username" value="" placeholder="username"/&gt;
  
  
                              &lt;/div&gt;
                              &lt;div&gt;
                                  &lt;input type="password" runat="server" id="password" name="password" value="" placeholder="password"/&gt;
                              &lt;/div&gt;
                              &lt;div&gt;
                                  &lt;input type="button" runat="server" value="Submit" id="submit" onclick=" button_onclick()" /&gt;
                              &lt;/div&gt;
                              &lt;/form&gt;
                              &lt;!-- ## / Panel Content  --&gt;
                          &lt;/div&gt;
  </code></pre>
  
  <p><strong>INDEX.aspx.cs PAGE</strong></p>
  
  <pre><code> public partial class Login : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
          }
          private void button_onclick(object sender, EventArgs e)
          {         
              string uname = Request[username.UniqueID];
              string pass = Request[password.UniqueID];
          }
  
      }
  </code></pre>