title: Server.Transfer on ASP.NET doesn't work
body: <p>My server method (void) is called by a javascript function and, int the end, it has to call another page using the Server.Transfer but it isn't happenning, the loaded page still the same (Default). Is a static method.</p>
  
  <pre><code>HttpContext.Current.Server.Transfer("Profile.aspx", true);
  </code></pre>
  
  <p>could someone help me ?</p>
  
  <p>The JS script is:</p>
  
  <p>function ChamarPerfil(valor) {</p>
  
  <pre><code>jQuery.ajax({
      url: 'Default.aspx/ChamaPerfil',
      type: "POST",
      //data: parametros,
      data: JSON.stringify({ 'lat': valor.k, 'lng': valor.A }),
      contentType: "application/json; charset=utf-8",
      dataType: "json"
  
  });
  </code></pre>