asp net core cshtml button onclick input 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")'" />