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 |
How can you maintain session in mvc?
What is actionresult mvc?
Is angular 2 is mvc?
What is difference between asp.net mvc and asp.net webforms?
How can we detect that an mvc controller is called by post or get?
What is difference between razor and aspx in mvc?
What is dao in mvc?
Mention what are main benefits of using mvc?
What is spring mvc model?
What is output caching in mvc?
How to perform exception handling in mvc?
Difference between mvc and web api?