title: How to create Button_Click() Event for Bootstrap Button?
body: <p>Bootstrap login form is below:</p>
  
  <pre><code>&lt;form class="form-vertical login-form" runat="server" action="~/Default.aspx"&gt;
      &lt;label class="control-label visible-ie8 visible-ie9"&gt;User Name&lt;/label&gt;
          &lt;input class="m-wrap placeholder-no-fix" type="text" placeholder="UserName" name="username"/&gt;
      &lt;label class="control-label visible-ie8 visible-ie9"&gt;Password&lt;/label&gt;
          &lt;input class="m-wrap placeholder-no-fix" type="password" placeholder="Password" name="password"/&gt;
      &lt;button type="submit" class="btn green pull-right" aria-pressed="undefined"&gt;
      Log In &lt;i class="m-icon-swapright m-icon-white"&gt;&lt;/i&gt;
      &lt;/button&gt;            
  &lt;/form&gt;
  </code></pre>
  
  <p>When the button is clicked, I want to create the connection to the database. So, I need to have sth like this:</p>
  
  <pre><code>protected void (ButtonName)_Click(object sender, EventArgs e)
  {
      string connStr = "Initial Catalog=LoginCheck; Data Source=MYCOMPUTER; User id=sa; password=000000;";
      SqlConnection conn = new SqlConnection(connStr);
      conn.Open();
      ...
  } 
  </code></pre>
  
  <p>But it doesn't work like ASP.NET. If I double-click on the button when I am designing, it's not taking me to code behind. Please put me in the right direction!</p>