I have the following button:
<a id="commons" href="#" onclick="$('#sideViewAside').load('@Url.Action("PurchaseOrderSideView")', {orderId: '@item.OrderId'});" data-ma-action="sidebar-open" data-ma-target="#detailsTab" class="hidden-xs ma-trigger btn btn-icon command-edit waves-effect waves-circle"><span class="zmdi zmdi-view-list"></span></a>
My Controller
has both the GET
and POST
method. When I run the code, on clicking this button, the POST method is being called, whereas, I want the GET method to be called. What am I doing wrong here?