I have multiple master pages in my asp.net mvc web application... Each of the pages add,edit,view and delete functionalities.... What it does is i have to create multiple views for handling add,edit,view and delete functionalities (ie) the user has to navigate to another view to edit/view the details of a record... How to Handle Multiple Form Actions (ie) add,edit,view and delete functionalities on One View?
A:
Not necessarily. You can do all those actions in just one view. The thing is that you must call the right action method in your controller.
Take a look on the link below. It shows you how to handle actions in your controller based on the button the user clicks inside a view.
Handling 2 buttons submit Actions in a single View/Form - ASP.NET MVC 2 RTM
Leniel Macaferi
2010-06-05 05:06:26
A:
takepara
2010-06-05 14:30:22