title: How to use ScriptManager with Razor in MVC 4?
body: <p>I used ScriptManager in .aspx page to Maintain <strong>URL history</strong> in .Net i.e.</p>
  
  <p>on <strong>aspx page</strong> i put this script after form tag</p>
  
  <pre><code>&gt; &lt;asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="true"
  &gt;         EnableHistory="true"&gt;       
  &gt;     &lt;/asp:ScriptManager&gt;
  </code></pre>
  
  <p>and in my <strong>.js</strong> file i put this code </p>
  
  <pre><code>Sys.Application.add_navigate(function (sender, e) {
      navigate(sender, e);
  });
  
   Sys.Application.addHistoryPoint(objOut, null);
  </code></pre>
  
  <p>Now same thing i want to use in <strong>MVC 4 with Razor</strong></p>
  
  <p>I used <strong>MicrosoftAjax.js</strong> for ScriptManager and .js code is same.
  but i am getting issue on callback.</p>
  
  <p>let me explain you with example:</p>
  
  <pre><code>suppose Actual URL is
  www.websitename.com/cat/30/
  
  anchor tag link on page is 
  www.websitename.com/cat/30/?q=10
  
  once callback perform anchor tag link becomes
  www.websitename.com/?q=10
  </code></pre>
  
  <p>I mean after callback "<strong>cat/30/</strong>" is missing from link. </p>
  
  <p>can anyone tell me what I am doing wrong.</p>
  
  <p>Thanks.</p>
  
  <p>Ashu</p>