Highlighting search text in ASP.NET search page

added by vijayst
11/8/2011 1:42:34 PM

2 Kicks, 109 Views

The article explains how to highlight search text within an ASP.NET search page. The code uses regular expressions to replace text with HTML formatting.


1 comments

dpeterson
11/8/2011 10:23:10 AM
A much better approach is to add a css class to the span, rather than hard coding the color in the code.