hi ,
In my project i need to search with multiple options and retrieved the records from database and display it in a gridview.I am able to do with one option but not with multiple options..please someone help me to do that
Regards
Anju
Search with multiple Records and display it on gridview
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Girish Sapariya159 reputationPosted Nov 25, 2013, 7:55 PM EST
Multiple search means, you will have multiple options for user to check with?
or
you can use same search box, but search for string in different fields.
You can use this query in order to acheive it:
select * from TableName
where ColumnName1 like 'txtsearchtext' OR ColumnName2 like 'txtsearchName'
This way you can add multiple columns for same string.
Hope this will help you.
Please let us know if it works for you
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 25, 2013, 8:05 AM EST