Highlighting search text in ASP.NET search page(www.knowdotnet.com)

submitted by vijaystvijayst(1311) 6 months, 18 days ago

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 comment |category: |Views: 26

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 6 months, 18 days ago 0

A much better approach is to add a css class to the span, rather than hard coding the color in the code.

Reply

information Login or create an account to comment on this story