Thursday 21 January 2016

MVC - create button with action link


Watch this example on YouTube

<button type="button" onclick="location.href='@Url.Action("Register","Account")'">REGISTER</button>

the code above will call register method in Account controller

No comments:

Post a Comment