Articles → ASP .NET MVC → Ignoreroute Function In Asp.Net MVC
Ignoreroute Function In Asp.Net MVC
Purpose
Sample Project
- Create an asp.net MVC application
- Create a folder ‘Employee’ inside ‘Views’ folder. Inside the folder add couple of views (see the screen shot below)
Click to Enlarge
- Add a file ‘EmployeeController’ inside the ‘Controller’ folder
Click to Enlarge
- Inside the ‘EmployeeController’, add following methods
Click to Enlarge
- Build the application to make sure there is no compile time error.
Check Views Without Ignoreroute Function
Click to Enlarge
Ignoring Routes
Click to Enlarge
Click to Enlarge