title: How to open view pass parameter in mvc 4?
body: <p>I don't known how to open a view pass parameter via a function javascript. Example : open a view DetailProduct with pass parameter categoryid and productid</p>
  
  <pre><code>       function DetailProduct(cid, pid) {
          window.location.replace('@Url.Action("Detail", "Product", new { CategoryID = cid , ProductID = pid })');
      }
  </code></pre>
  
  <p>I get error <code>The name cid does not exist in the current context</code>  and <code>The name pid does not exist in the current context</code>
  Thank so much.</p>