title: Post back causing reset in the slider, how to stop it from doing a reset (asp.net website)
body: <p>I have a slider and on page load I set a default value to the slider(25,75). Everytime there is a post back inside the update panel after I change the slider value it reset the value to 25,75 how can I stop it from doing an reset.</p>
  
  <pre><code> &lt;asp:AsyncPostBackTrigger ControlID="ddl_RespondBy" EventName="SelectedIndexChanged" /&gt;
  </code></pre>
  
  <p>When I select a option from the drop down the value in the slider is reset. how to stop it</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
          function pageLoad(sender, args) {
              $('.datePicker').datetimepicker({ dateFormat: 'dd/mm/yy' });
              $(function () {
                  $("#slider-range").slider({
                      range: true,
                      min: 0,
                      max: 100,
                      values: [25, 75],
                      slide: function (event, ui) {
                          $("#minval").val("" + ui.values[0] + " - " + ui.values[1]);
                      }
                  });
                  $("#minval").val("" + $("#slider-range").slider("values", 0) +
              " - " + $("#slider-range").slider("values", 1));
              });
          }
      &lt;/script&gt;
  </code></pre>