Explain with examples for scenarios when routing is not applied ?

 Posted by Bharathi Cherukuri on 8/27/2012 | Category: ASP.NET MVC Interview questions | Views: 3447 | Points: 40

Below are the 2 scenarios where routing is not applied.

i) A Physical File is Found that Matches the URL Pattern - This default behaviour can be overriden by setting the RouteExistingFiles property of the RouteCollection object to true.
ii) Routing Is Explicitly Disabled for a URL Pattern - By using the RouteCollection.Ignore() method, you can prevent routing from handling certain requests.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response