Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can we detect that an mvc controller is called by post or get?



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

Post New Answer

More MVC Model View Controller Interview Questions

How can you maintain session in mvc?

1 Answers  


What is actionresult mvc?

1 Answers  


Is angular 2 is mvc?

1 Answers  


What is difference between asp.net mvc and asp.net webforms?

1 Answers  


How can we detect that an mvc controller is called by post or get?

1 Answers  


What is difference between razor and aspx in mvc?

1 Answers  


What is dao in mvc?

1 Answers  


Mention what are main benefits of using mvc?

1 Answers  


What is spring mvc model?

1 Answers  


What is output caching in mvc?

1 Answers  


How to perform exception handling in mvc?

1 Answers  


Difference between mvc and web api?

1 Answers  


Categories