title: how to get bootstrap textbox value in asp.net code behind and send as parameters in store procedure?
body: <p>I have following code on customer.aspx page. Now how can I use textbox and dropdown button's values in codebehind file to send as parameter of the store procedure ? textbox and dropdown must be build from Bootstrap only</p>
  
  <pre><code>&lt;div class=" col-xs-12 col-md-6 col-lg-4"&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="firstname"&gt;First Name&lt;/label&gt;
          &lt;input class="form-control" id="firstname" type="text" placeholder="Smith"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=" col-xs-12 col-md-6 col-lg-4"&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="gender"&gt;Gender&lt;/label&gt;
          &lt;div class="form-group "&gt;
          &lt;select class="form-control col-sm-10"&gt;
              &lt;option value="0" selected&gt;Select Gender&lt;/option&gt;
               &lt;option value="1"&gt;Male &lt;/option&gt;
               &lt;option value="2"&gt;Female&lt;/option&gt;
               &lt;option value="3"&gt;Others&lt;/option&gt;
           &lt;/select&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Codebehind file: </p>
  
  <pre><code>public void Enroll_Customer()
  { 
      String CS =ConfigurationManager.ConnectionStrings["PortfolioMgmtConnectionString"].ConnectionString;
      using (SqlConnection con = new SqlConnection(CS))
  
  {
  
  SqlCommand cmd = new SqlCommand("[spAddNewCustomer]", con);
  cmd.CommandType = CommandType.StoredProcedure;               
  
  cmd.Parameters.Add("@FirstName", SqlDbType.VarChar).Value = 
  Request.Form("firstname");
  
  cmd.Parameters.Add("@gender", SqlDbType.Text).Value = ddlCategory.SelectedValue;
  con.Open();
  cmd.executeNonQuery();
  }
  </code></pre>