Answers

Question and Answer:

  Home  MVC

⟩ How do you handle variable number of segments in a route definition?

Use a route with a catch-all parameter. An example is shown below. * is referred to as catch-all parameter.

controller/{action}/{*parametervalues}

 171 views

More Questions for you: