Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Highlighting Certain words in a document

Reply
Thread Tools

Highlighting Certain words in a document

 
 
Stephajn Craig
Guest
Posts: n/a
 
      07-03-2003
Is there a way that I can have a page do some highlighting based on a set of
given keywords?

The scenario is that a user does a search for certain keywords, and then the
items returned have the words that cause them to be a match highlighted as
the user looks through the item.

--
Stephajn Craig


 
Reply With Quote
 
 
 
 
David Waz...
Guest
Posts: n/a
 
      07-03-2003
Yep, you can use filters on the output...

I've never done it - (of course)
but i remember reading that you can place a filter on
outgoing documents. you could then do string replacement
on the output stream.

>-----Original Message-----
>Is there a way that I can have a page do some

highlighting based on a set of
>given keywords?
>
>The scenario is that a user does a search for certain

keywords, and then the
>items returned have the words that cause them to be a

match highlighted as
>the user looks through the item.
>
>--
>Stephajn Craig
>
>
>.
>

 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      07-05-2003
Actually, given the ability to parse the response a CSS declaration
such as a span including a class that defined a background color
would meet the requirement...

<span class="TextHighlight">the words</span>

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
SEE: http://www.storefront.net/default.as...RER=-201499070







"John Timney (Microsoft MVP)" <> wrote in message news:...
> You could always just surrounding the words on output with html tags
> containing the word <strong>the words<strong/>, uisng a regular expression
> replace, or string replace
>
> --
> Regards
>
> John Timney (Microsoft ASP.NET MVP)
> ----------------------------------------------
> <shameless_author_plug>
> Professional .NET for Java Developers with C#
> ISBN:1-861007-91-4
> Professional Windows Forms
> ISBN: 1861005547
> Professional JSP 2nd Edition
> ISBN: 1861004958
> Professional JSP
> ISBN: 1861003625
> Beginning JSP Web Development
> ISBN: 1861002092
> </shameless_author_plug>
> ----------------------------------------------
>
> "Stephajn Craig" <> wrote in message
> news:#...
> > Is there a way that I can have a page do some highlighting based on a set

> of
> > given keywords?
> >
> > The scenario is that a user does a search for certain keywords, and then

> the
> > items returned have the words that cause them to be a match highlighted as
> > the user looks through the item.
> >
> > --
> > Stephajn Craig
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Words and non-words, according to Microsoft et al Steve B NZ Computing 11 03-21-2008 11:52 PM
Replace stop words (remove words from a string) BerlinBrown Python 6 01-17-2008 02:37 PM
Words Words utab C++ 6 02-16-2006 07:00 PM
Non-noise words are incorrectly recognised as noise words. Peter Strĝiman ASP .Net 1 08-23-2005 01:26 PM
Re: A little bit of help regarding my linked list program required. - "words.c" - "words.c" Richard Heathfield C Programming 7 10-05-2003 02:38 PM



Advertisments