title: How to pass javascript value in Razor syntax(as a parameter value)
body: <p>i am using jquery grid in MVC 3 .as a formatter option i am using following code as a script segment.</p>
  
  <pre><code>function viewformateadorLink(cellvalue, options, rowObject) {
               return "&lt;a href=../xxx/yyy/Edit/" + rowObject[0] + "&gt;" + cellvalue + "&lt;/a&gt;";   
           }
  </code></pre>
  
  <p>but i don't want to use href here .better option i have found is as follows:</p>
  
  <pre><code>func....(){
     var url = '@Html.ActionLink( "_name_", "Edit", new { id = "_id_" })';
             url = url.replace(/_name_/, cellvalue);
             url = url.replace(/_id_/, rowObject[0]);
             return url;    
     }
  </code></pre>
  
  <p>are there any simple way exist for passing parameter? </p>