Question : How to Improve search functionality in ASP.NET 1.1?

Hi Experts,

New Request- Add new supplier- supplier existence search

If you put in ABC Photography Studios- ABC will show up, photography will show up, studios will show up…1,000 hits. Suggestion to improve the search function, eg ABC Photo% should only return results that start with ABC Photo.

Please assist how can I do implement this search in ASP.NET 1.1?

thanks
Dileep

Answer : How to Improve search functionality in ASP.NET 1.1?

For this you need to create the query and fill the dataset

You can write the query as
Select * from tablename where sName Like 'ABC%'

string q = "Select * from tablename where sName Like '"  + txtname.Text + "%'"

fille the dataset with above query and bind it the grid

Hope this will help you
Random Solutions  
 
programming4us programming4us