MVC Developer Question:

Download Job Interview Questions and Answers PDF

Explain me what is the significance of NonActionAttribute?

MVC Developer Interview Question
MVC Developer Interview Question

Answer:

In general, all public methods of a controller class are treated as action methods. If you want prevent this default behaviour, just decorate the public method with NonActionAttribute.

Download MVC Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me the meaning of Unobtrusive JavaScript?Explain me what is Validation Summary in MVC?