Is there any way to handle variable number of segments in a route definition ?

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

You can handle variable number of segments in a route definition by using a route with a catch-all parameter.
Example:

controller/{action}/{*parametervalues}

Here * reffers to catch-all parameter.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response