title: Url.RouteUrl in the callback of an ajax and add params using jquery
body: <p>I have the following code in the callback of an ajax call:</p>
  
  <pre><code>jQuery.each(res, function () 
  {
     var anchor = $("&lt;a/&gt;", { id: this.UrlTitle, text: this.Name.toLowerCase(), style: 'color:#000000;' });
      anchor.attr('href', @(Url.RouteUrl("Detail",new{indicator=this.Name,urltitle=this.NameUrl}));");
  });
  </code></pre>
  
  <p>I would like to use this.Name and this.UrlTitle inside of the foreach.</p>
  
  <p>The problem is that i want to avoid to use querystrings variables (?param=1, etc...)</p>
  
  <p>Do you know how to inject jquery variables into the html helper Url.RouteUrl?</p>
  
  <p>Thanks in advance</p>
  
  <p>regards.</p>
  
  <p>Jose.</p>