Explain how to use multiple submit buttons in ASP.Net MVC?



Explain how to use multiple submit buttons in ASP.Net MVC?..

Answer / Shailesh Narayan Gautam

To use multiple submit buttons in ASP.NET MVC, you can assign unique names to each button and then create separate methods for handling the form's submission in the controller for each button. In the view file, ensure that the form elements have the same name attribute, and each submit button has a unique value attribute.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What is a model in android?

1 Answers  


I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?

1 Answers   Accenture,


Is there built-in support for tracing/logging

1 Answers  


Can we add constraints to the route? If yes, explain how we can do it?

1 Answers  


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

1 Answers  


what is entity framework?

1 Answers   Microsoft,


Describe the advantages of writing a managed code application instead of unmanaged one. What's involved in certain piece of code being managed ?

1 Answers  


What filters are executed in the end?

1 Answers  


What does assemblyinfo.cs file consists of ?

1 Answers   Accenture, BirlaSoft,


What is Globalizationa and Localization

1 Answers  


If we write return statement in finally block will it works fine or throws any error?

7 Answers   Kanbay,


How we can handle the exception at controller level in ASP.Net MVC?

1 Answers  


Categories