title: how to scroll a page at specific position when page reloads in MVC ASP.NET
body: <p>This is ASP.NET MVC project, I have placed a <code>div</code> at specific position in the page and added id <code>dealProductAnchor</code>. When this page loads or reloads normally it behaves as normal, but when a specific button is clicked <strong>I want that page after completing all postback progress when page loads done</strong>, it comes to the position of that div.</p>
  
  <p>with java script I tried this, but did nothing any solution from server side or client side will be appreciable. </p>
  
  <pre><code>$(".button-1").click(function () {
          if (localStorage &amp;&amp; !localStorage.getItem('click')) {
              localStorage.setItem('click', true);
          }
      });
  
  
  $(document).ready(function () {
      if (localStorage.getItem('click') == true) {
  
          window.location = window.location.href + "#dealProductAnchor";
          //click = false;
      }
       });
  </code></pre>