Articles → ASP .NET MVC → IgnoreRoute function in asp.net MVC

IgnoreRoute function in asp.net MVC






Purpose





Sample Project








Picture showing the View files inside the Employee folder

Click to Enlarge



Picture showing adding the EmployeeController inside the Controller folder

Click to Enlarge



Picture showing the code inside the EmployeeController

Click to Enlarge




Check views without IgnoreRoute function




Picture showing old and new views without IgnoreRoute function

Click to Enlarge


Ignoring routes




Picture showing adding the IgnoreRoutes code in the RouteConfig file

Click to Enlarge



Picture showing the error displayed when user is trying to navigate to the old view

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, March 23, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250