title: use @Url.Action with parameter in click event jQuery
body: <p>I need to use @Url.Action to reach a MVC ASP.NET controller using the buton' click event and jQuery, so far this works for me</p>
  
  <pre><code> $("#btnEneviar").click(function (e) {
              window.location.href = '@Url.Action(actionName: "TipoEvento", controllerName: "Home")';
          });
  </code></pre>
  
  <p>but now I need to send a parameter to the controller using the route, this is my code</p>
  
  <pre><code> $("#btnEnviar").click(function (e)
          {    
              var valorAccion = $('#Table tr:eq(0) td:eq(1)').text();
              window.location.href = '@Url.Action("Solicitud", "Home", new { valor = valorAccion })';
          });
  </code></pre>
  
  <p>but I got the error: "the name valorAccion does not exits in the current context"</p>
  
  <p>could you please help me to fix it.</p>