Author: oguzkaygun | Posted on: 7/19/2008 3:47:38 AM | Views : 353

hi I have problem in below code. How can i fix it ? my error is Argument data type int is invalid for argument 1 of charindex function

Sincerely

Label1.Text = HttpUtility.UrlDecode(Request("urunnumarasi")).ToString
value of label1.text is ,23,34,55,66
SqlDataSource1.SelectCommand = "select * from prodcucts where charindex(',' + urunnumarasi + ',', @ProductIds) > 0"

SqlDataSource1.SelectParameters.Add("ProductIds", Label1.Text)

SqlDataSource1 from data of toolbox and connect to datalist1
...

Go to the complete details ...