top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are Non Action methods in ASP.Net MVC?

+1 vote
694 views
What are Non Action methods in ASP.Net MVC?
posted Aug 26, 2016 by Latha
Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In ASP.Net MVC all public methods have been treated as Actions. So if you are creating a method and if you do not want to use it as an action method then the method has to be decorated with "NonAction" attribute as shown below :

[NonAction]
public void TestMethod()
{
// Method logic
}
answer Aug 27, 2016 by Shivaranjini

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...