Can action method static?



Can action method static?..

Answer / Suresh Kumar Gautam

No, in ASP.NET MVC, action methods cannot be declared as static. Action methods are instance methods of a controller class and must have access to the instance variables of the controller.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Where do you store the information about the user?s locale?

1 Answers  


How would you turn off cookies on one page of your website?

1 Answers  


How does the service stream content?

1 Answers  


What is the difference between typeof() vs gettype()?

1 Answers  


What is the use of web.config? Difference between machine.config and Web.config?

5 Answers  


What are the different types of Caching techniques in ASP.NET?

1 Answers  


What is Razor View Engine

1 Answers   HCL,


Why mvc is faster than asp.net? : Asp.Net MVC

1 Answers  


how to create bin folder in asp.net2.0

8 Answers  


In a Code-Behind class generally which type of code is found ?

3 Answers   Siebel,


How do you insert multiple rows from a grid view to database table under a single transaction?

1 Answers  


What are the different types of sessions in asp.net?

1 Answers  


Categories