Multiple Models in a View in ASP.NET MVC 4 / MVC 5 (with source code)

  1. use javascript to change the form action attribute  http://www.webdeveloper.com/forum/showthread.php?233372-RESOLVED-Two-Submit-Buttons-for-One-Form 
  2. In the server side code, depend on the different values with the same name submit buttons http://stackoverflow.com/questions/18639860/how-to-handle-multiple-submit-button-in-same-form 

others: Create a new attribute class like [MultipleButton]

  1. http://www.codeproject.com/Articles/717941/How-to-Choose-the-Best-Way-to-Pass-Multiple-Models
  2. http://www.codeproject.com/Articles/687061/Multiple-Models-in-a-View-in-ASP-NET-MVC-MVC
posted @ 2014-10-16 20:01  martin.li  阅读(184)  评论(0)    收藏  举报