top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+3 votes
1,021 views
How do you handle variable number of segments in a route definition?
posted May 14, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Use a route with a catch-all parameter. An example is shown below. * is referred to as catch-all parameter.
controller/{action}/{*parametervalues}

answer May 15, 2015 by Shivaranjini
...