Identify the correct statements about Action Methods of Controller in MVC?
Back to QuestionsAction Methods can be overloaded
Action methods must be public
Action Methods can't be private or protected
Action methods can't be a static method
All above
Action Methods can be overloaded,all public methods in a controller we will call action method.If "ActionResult method" is a method that returns ActionResult, you can't declare it static,if you declared it static of course, but it will not be called when you initiate that action. When calling some action, ASP.NET MVC creates an instance of the controller (using ControllerFactory), and since your method is static, it is not related to any instance, and thus, it will not be called by MVC
Answers Posted
PostedBy By: Raj, at 01:30 PM on 27-July-2019
Answer Posted: B C D
Explanation: can't be overloaded
Result: Wrong Answer
PostedBy By: prakash.shrestha@inspopindia.com, at 04:19 AM on 16-July-2019
Answer Posted: E
Explanation: all are true
Result: Correct
PostedBy By: Abhishek Kumar, at 06:45 PM on 07-July-2019
Answer Posted: E
Explanation: Action methods must be public
Result: Correct
PostedBy By: Ravindra, at 08:00 PM on 23-April-2019
Answer Posted:
Explanation: Na
Result: Wrong Answer
PostedBy By: vamshi, at 09:18 AM on 23-April-2019
Answer Posted: E
Explanation: All the above
Result: Correct
PostedBy By: jayaprathap, at 06:52 AM on 23-April-2019
Answer Posted: E
Explanation: all the public method of controller are called action method
Result: Correct
PostedBy By: Satya Krishna, at 04:22 AM on 23-April-2019
Answer Posted: E
Explanation: Action methods must be public they can be overloaded they can't be static
Result: Correct
PostedBy By: Saikiran K, at 03:44 AM on 20-April-2019
Answer Posted:
Explanation: it is a private
Result: Wrong Answer
PostedBy By: Revanth Sai, at 10:51 AM on 19-April-2019
Answer Posted:
Explanation: It should be public
Result: Wrong Answer