Is it possible to store this value in the paramter collection and pass to my query like below. for some reason it is not working for me ...please let me know how can i fix this. thanks
strState = ('AL','AR','AZ','CA','CO','CT','DC')
strState = "(" & strState & ")"
SqlDataSource1.SelectCommand &= "AND R.ASTATE IN :vState"
SqlDataSource1.SelectParameters.Add(":vState", strState)
strState = ('AL','AR','AZ','CA','CO','CT','DC')
strState = "(" & strState & ")"
SqlDataSource1.SelectCommand &= "AND R.ASTATE IN :vState"
SqlDataSource1.SelectParameters.Add(":vState", strState)