MVC button click to action [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Mvc Html.ActionButton With ASP.NET MVC 3 I know how to create a link to an action method very easily but what I'd like to know is how do you make a button (when clicked) call a particular action method? 回答1: Sachin, If you're using jquery (which you don't mention but I'll show as it's fairly standard with mvc), you'd do the following: $('#buttonId').click(function(){ document.location = '@Url.Action("MyAction",