title: How to pass multiple parameters in url.action in JavaScript in MVC?
body: <p>I have below javascript function in my MVC application,</p>
  
  <pre><code>function EditProducts(productId, orderId, employeeId, mode) 
  {
      mode = "edit";
      debugger;
      var url = '@Url.Action("Index", "Home", new { productId = "__productId__", orderId = "__orderId__", employeeId = "__employeeId__", Mode = "__mode__"})';
      var params = url.replace('__productId__', productId).replace('__orderId__', orderId).replace('__employeeId__', employeeId).replace('__mode__', mode);
      window.location.href = params;
  }
  </code></pre>
  
  <p>But it doesn't work. Here is my controller code by I am not getting any values in below vaiables,</p>
  
  <pre><code>public ActionResult Index(int productId, int orderId, int employeeId, string mode)
  {
      return View();
  }
  </code></pre>
  
  <p>Any ideas on how to pass multiple parameters through url.action?</p>