G
Guest
I'm trying to filter a dataset on items that are being passed in via a
querystring.
the string looks like this.
chevy|ford|BMW|
on the information page i split the string such as
selCars.split("|")
and i want to filter the dataset based on the string so i do this
dataview.rowfilter ="carmake=" & "'" cars & "'"
datalist.datasource = dv
datalist.databind
now my question is how can i populate and display the datalist for
everything coming in via the querystring and split them correctly at the |?
If I only pass 1 item in such as BMW without the | it works fine, but if i
pass more then 1 and split using | it doesn't work.
my code snippet
for i = 0 to CarArray.Length
dataview.rowfilter ="carmake=" & "'" cars & "'"
next
datalist.datasource = dataview
datalist.databind
i need a table for each item being passed in
querystring.
the string looks like this.
chevy|ford|BMW|
on the information page i split the string such as
selCars.split("|")
and i want to filter the dataset based on the string so i do this
dataview.rowfilter ="carmake=" & "'" cars & "'"
datalist.datasource = dv
datalist.databind
now my question is how can i populate and display the datalist for
everything coming in via the querystring and split them correctly at the |?
If I only pass 1 item in such as BMW without the | it works fine, but if i
pass more then 1 and split using | it doesn't work.
my code snippet
for i = 0 to CarArray.Length
dataview.rowfilter ="carmake=" & "'" cars & "'"
next
datalist.datasource = dataview
datalist.databind
i need a table for each item being passed in