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

What does it mean to annotate something?

1 Answers  


How do the mvp, mvc, and mvvm patterns relate? When are they appropriate?

1 Answers  


what are the benefits of area in mvc?

1 Answers  


Explain how routing is done in mvc pattern?

1 Answers  


What does Model, View and Controller represent in an MVC application?

1 Answers   NA,


What is routing in mvc interview questions?

1 Answers  


What are the filters in mvc?

1 Answers  


Difference between mvc and web api?

1 Answers  


What is cshtml in mvc?

1 Answers  


Why mvc is better than asp net?

1 Answers  


What is mvvm mvc?

1 Answers  


What is strongly typed view in mvc?

1 Answers  


Categories