title: Get html input values in server side in asp.net
body: <pre><code>    &lt;asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server"&gt;  
       &lt;script type="text/javascript"&gt;
        $(function () {
                      $("#slider-range").slider({
                          range: true,
                          min: 0,
                          max: 100,
                          values: [0, 75],
                          slide: function (event, ui) {
                              $("#value").val("" + ui.values[0] + " - " + ui.values[1]);
                          }
                      });
                      $("#value").val("" + $("#slider-range").slider("values", 0) +
                      " - " + $("#slider-range").slider("values", 1));
                  });
        &lt;/script&gt;
      &lt;/asp:content&gt;
  </code></pre>
  
  <p>I am using this code for a slider in my asp.net page. Now the value in displayed in the Html input.  </p>
  
  <pre><code>      &lt;input type="text" id="value" style="border: 0; font-weight: bold;" /&gt;
  </code></pre>
  
  <p>it is displayed as 0-75. How can I get both the values (0,75) separately in my server side so that i can write the values in database.</p>
  
  <p>How to change the code so that in my server side I can asign values to 2 variables. The slider contains min value(0) and max value(75)[selected by users].</p>
  
  <p>var a= 0;
  var b= 75;</p>