I want the below functionality in MVC razor.
<asp:Button ID="Button1" runat="server" Text="Delete" onclick="Button1_Click" OnClientClick="CheckDelete()"/>
I used
@Html.ActionLink("Delete", "Action", "Controller", new { onClientclick = "checkDelete();" }, null)
But this is not working.
