title: Confirmation for Url.Action in razor
body: <p>Hi I am using an edit button inside a gridview. I want a confirmation button before calling to the action?</p>
  
  <pre><code>grid.Column("","",format:@&lt;text&gt;@if(!item.IsBookPublished)
  {
   &lt;text&gt; &lt;a href='@Url.Action("EditBookByID","Books", new {BookID = @item.BookDetailsID, CreatedBy = @item.UserID , onclick = "return confirm('Are you sure you want to Edit?')" })'&gt;Edit&lt;/a&gt;&lt;/text&gt;
   }
   &lt;/text&gt;
  </code></pre>
  
  <p>However the onclick property is not evaluating, instead it is passing as a parameter. How can I achieve confirmation?</p>