title: Redirect from Jquery to an .aspx file
body: <p>i need to redirect from a Jquery function to a clasic ascx form (no mvc). And also need to pass an id.</p>
  
  <p>Here is my code, </p>
  
  <pre><code>jQuery(document).ready(function () {
      var rows = jQuery(".emailListRow");
      jQuery.each(rows, function () {
          var hiddenVal = jQuery(this).find('input[type="hidden"]').val();
          jQuery(this).append("&lt;input type='button' id='btnDetails' value='Details' onClientClick='redirectTo(" + hiddenVal + ")' /&gt;");
      });
  });
  
  function redirectTo(id) {
      window.location.href = "Forms/Details.aspx?id=" + id;
  }
  </code></pre>
  
  <p>This doesnt work... Doesnt throw any errors either. </p>
  
  <p>Help? Maybe i got wrong the parth to the aspx? (This is an ascx located in a folder and within that its another folder (Forms) in which is placed Details.aspx. </p>