Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi sir,

am developing jobportal application using asp.net with c#. i want search the resume based on keyword and highlight that word with particular control. am tried with textbox.

it is supported text loading with alignment with replace option, but doesn't highlight.
the label control, and div controls are supporting highlighting doesn't alignment with replace option.

if there is anyother specific controls for this highlighting process pls tell me.

it is an urgent requirement please help me to complete this task.

By
Nandakumar.S
Posted
Comments
Nandakumar31 11-Apr-12 1:48am    
hi sir,
your result is applicable only div or within that page.

but i want search textbox or textarea control which is stored resume imported from document.

i should highlight with in textbox ,the word keyskills

pls give me solution.

You can do this using jQuery. Here is it's implementation - More jQuery Magic - Search Highlighting[^]. And here is it's demo[^]

Edit - You will find many more implementations here - Google Search result - jquery search and highlight text[^]

Hope this helps!
 
Share this answer
 
v2
Refer Regex function in C#, and search samples about match,search,replace,etc......



find here


find here
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900