Click here to Skip to main content
15,923,389 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.

div is not supported for replace alignment.

am imported resume from word into textbox with size of with=500px; height = 300px alignment,but not supported highlighting.

i want highlight with in that textbox control pls help me.



By
Nandakumar.S
Posted

1 solution

TextBox is the wrong control here I think.

I propose you use a Label control and replace each keyword with a highlighted keyword.
Start of by eg. making all keywords bold, or underlined by replacing 'keyword' with '< b >keyword< / b >' or '< u >keyword< / u >'.

If that works you can go more complex by using the HTML font tag and attributes eg. Don't know by heart if that (the font tag) allows changing the background though.

Hope this helps.
 
Share this answer
 

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