Hi All
I am trying to build a serach page and I am not sure how to do a few things. I have a form that takes my serach criteria from page1.aspx and displys its reults in page2.aspx. I have put the parameters I pass from one page to another in a session. The results are shown in a datagrid
Problem
I have created a sql statement as follows
SELECT * FROM Services WHERE ServiceDescription LIKE = '" & session("Service" & "'"
However this treats the value they entered as a string, so if the user types in "Violence Help" it will look for it in this order. However im trying to get it to search the Database field so it will look for occurences of both "Violence" and "Help" in any order. Basically so the user can search AND OR in what they type in.
I have searched this site and the web and cant find any articles.
Thanks in advance
I am trying to build a serach page and I am not sure how to do a few things. I have a form that takes my serach criteria from page1.aspx and displys its reults in page2.aspx. I have put the parameters I pass from one page to another in a session. The results are shown in a datagrid
Problem
I have created a sql statement as follows
SELECT * FROM Services WHERE ServiceDescription LIKE = '" & session("Service" & "'"
However this treats the value they entered as a string, so if the user types in "Violence Help" it will look for it in this order. However im trying to get it to search the Database field so it will look for occurences of both "Violence" and "Help" in any order. Basically so the user can search AND OR in what they type in.
I have searched this site and the web and cant find any articles.
Thanks in advance