Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Viewing all articles
Browse latest Browse all 956

Searching using text to include and exclude

$
0
0

Hi,

Got a small problem. I have two text boxes, include and exclude and I wish to search a table and show records that have the include but not show any records that have the text in the exclude box. Simple enough, but I can't find the right commands.

I've got multiple columns to look through so was using like % include % and not like % exclude %, but I can't get it to show the correct records.

Anyone any thoughts?


Viewing all articles
Browse latest Browse all 956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>