.net core html button click code example
Example: button action asp net
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />