Paging data and highlight closest match

G

Guest

I have created an ASP.NET using page that allows the user to page through a
result set. I need to expand on this. On that same page I have a field where
the user can type in a search string. When they click a button ALL the
results will be returned and the closest match to the search string will be
highlighted. I found some interesting ways to page through the data, but I
need to determine what page the closest match is on. In the old version of
ADO there was a FIND method. Regardless of how I page my data, what is the
best way to do what I need. Thanks
 
S

S. Justin Gengo

Daniel,

Does the data have to remain in any particular order? If not you may want to
take a look at a search object I built. It gives all items a search score
and orders them by that score so the closest match is moved to the top...

I give away the component for free, including full source, on my website:
www.aboutfortunate.com just go to the code library page and click on
"Search" in the menu on the left.

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top