Model View Controller (MVC) Question:

What are the 2 ways of adding constraints to a route?

Tweet Share WhatsApp

Answer:

1. Use regular expressions
2. Use an object that implements IRouteConstraint interface

Download MVC PDF Read All 48 MVC Questions
Previous QuestionNext Question
How do you handle variable number of segments in a route definition?Give 2 examples for scenarios when routing is not applied?