Tom Pearson

Tom Pearson

  • NA
  • 8
  • 0

help with if loop string

Mar 14 2008 9:11 AM

i have a if string that fills a datagrid column and i need to add a 2nd part to this.

atm ppl can use a dropdown to search for specialty. i need to add a 2nd dropdown with the same specialtylist and allow ppl to search against both

here is the code if sting for the 1st speciality :

[code]

if (Server.HtmlEncode(arr1[loop1])=="specialty")
sWhere += "specialty  LIKE '%" + (arr2[loop2]) + "%' AND ";
   [/code]

the column name is specialty and the dropdown is labled specialty. i added a 2nd dropdown labled specialty2...i want it to work so that if they select one from specialty and specialty2 if will filter on both selections.

how can i incorpate this into this if string?


Answers (1)