Click here to Skip to main content
15,891,875 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi this is madan .I developing a web site in asp.net that project having the search box.if user enter any data that will be search on whole database tables and if any keyword matching that will show any databound control



Please help me..


Regards,
Madan
Posted

You'll have to execute query on submit

Select * from table where Columnname like '%"+textbox1.Text+"%'"
 
Share this answer
 
Comments
Richard MacCutchan 6-Aug-11 8:55am    
A good (that is to say bad) example of SQL Injection.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900