1

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?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
ACP
  • 34,682
  • 100
  • 231
  • 371

2 Answers2

2

Show this entry.

Supporting multiple submit buttons on an ASP.NET MVC view

Very cool technique!

takepara
  • 10,413
  • 3
  • 34
  • 31
1

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

Community
  • 1
  • 1
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480