Model View Controller (MVC) Question:

Download Job Interview Questions and Answers PDF

Is the following route definition a valid route definition?

MVC Interview Question
MVC Interview Question

Answer:

{controller}{action}/{id}
No, the above definition is not a valid route definition, because there is no literal value or delimiter between the placeholders. Therefore, routing cannot determine where to separate the value for the controller placeholder from the value for the action placeholder.

Download MVC Interview Questions And Answers PDF

Previous QuestionNext Question
What are the 3 things that are needed to specify a route?What is the use of the following default route?