title: Add onclick event for MVC5 Url.Action
body: <pre><code>@Html.PagedListPager(Model, page =&gt;Url.Action("GetOrderDetails", 
   new { page, sortOrder = ViewBag.CurrentSort }),
    PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(new AjaxOptions() 
     { HttpMethod = "GET", UpdateTargetId = "gridTable" }))
  </code></pre>
  
  <p>I have the above code inside a MVC5 view.</p>
  
  <p><strong>Question:</strong> Is it possible to add a client-side onclick event handler for the above Url.Action generated URL by adding some extra parameter to Url.Action code? if yes, then where in Url.Action would I add this?</p>
  
  <p>The HTML emitted by above PagedListPager is as below.</p>
  
  <pre><code>&lt;ul class="pagination"&gt;&lt;li class="active"&gt;&lt;a&gt;1&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a data-ajax="true" data-ajax-method="GET" 
  data-ajax-mode="replace" data-ajax-update="#gridTable" href="/Order_Details/GetOrderDetails?page=2&amp;
  amp;sortOrder=asc"&gt;2&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a data-ajax="true" data-ajax-method="GET" data-ajax-mode="replace"
  data-ajax-update="#gridTable" href="/Order_Details/GetOrderDetails?page=3&amp;amp;sortOrder=asc"&gt;3&lt;/a&gt;
  &lt;/li&gt;&lt;/ul&gt;
  </code></pre>