InterviewSolution
Saved Bookmarks
| 1. |
How we can multiple submit buttons in ASP.Net MVC? |
|
Answer» Below is the scenario and the solution to solve multiple submit buttons issue.Scenario : using (Html.BeginForm("MyTestAction","MyTestController"){ <input type="submit" value="MySave" /> <input type="submit" value="MyEdit" />}Solution :Public ActionResult MyTestAction(string submit) //submit will have value either "MySave" or "MyEdit"{ // Write code here}
|
|