Answers for "html button to ActionLink"

0

html button with action link

<input type="button" class="btn btn-info" value="Let's Go!" onclick="location.href='@Url.Action("Action", "Controller")'" />
Posted by: Guest on July-26-2020
0

button as href

<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language