i have an asp.net mvc page where i show a dataset in a report. I have a filter section at the top and each filter changes the dataset from:
Controller/Action
to something like this:
Controller/Action/Field1Filter
If there is no filter selected, i put a zero in this part of the url. I keep adding more fields to filter by and now i end up with this type of URL.
Controller/Action/Field1Filter/Field2Filter/Field3Filter/Field4Filter/Field5Filter/Field6Filter . . . .
so i end up with URLs like this:
Controller/Action/0/0/1/0/5/0
Is there anyway to do this as:
- I am going to be adding some more fields to filter by
- I want to support multiselect for some of these fields so i dont see how i can support this in the current model