How can we detect that an mvc controller is called by post or get?
Answer / Tarkeshwar Prasad
In MVC, you can detect whether a controller action is called via GET or POST by checking the HttpRequest object's httpMethod property. For example: `if (request.HttpMethod == "POST") { ... }`
| Is This Answer Correct ? | 0 Yes | 0 No |
What does it mean to annotate something?
How do the mvp, mvc, and mvvm patterns relate? When are they appropriate?
what are the benefits of area in mvc?
Explain how routing is done in mvc pattern?
What does Model, View and Controller represent in an MVC application?
What is routing in mvc interview questions?
What are the filters in mvc?
Difference between mvc and web api?
What is cshtml in mvc?
Why mvc is better than asp net?
What is mvvm mvc?
What is strongly typed view in mvc?