I am currently using Url.Action for buttons on my dashboard and I would keep this consistent UI.
I have a delete button which I now want to implement a pop up box for to avoid mistake deletes.
I have achieved this using Html.Action link but I quickly learnt that I cannot put this inside an tag. Can someone please aid me in making the equivalent to end up with a button? Thanks.Url.Action Code
<input type="submit" value="Delete" onclick="location.href='@Url.Action("Action","Controller", new {refNumber = item.RefNumber, null}'"/>
Html.ActionLink Code
@Html.ActionLink("Action","Controller", new {refNumber = item.RefNumber}, new {onclick="return confirm('Are you sure?');"})