Noscript

A 1-post collection

ASP.NET MVC - Multiple parameterised form submit buttons without Javascript

By Matt |  Jan 24, 2011  | asp.net-mvc, noscript
The current project I’m working on involves a search page with multiple submit buttons in a single HTML form. Each submit button triggers a different behavior while posting all of the form data to the controller. This method is compatible with both IE 6+ and Firefox. It also avoids the IE button bug where button values are not passed on HTTP POST. After discussing a few design options we decided to allow the user to add the desired search parameters via selecting them one by one from a drop down list.
Continue Reading...