在asp.net和C#的textarea控件中高亮显示文本 [英] text search with highlighting within textarea control in asp.net and c#

查看:123
本文介绍了在asp.net和C#的textarea控件中高亮显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

正在使用c#使用asp.net开发Jobportal应用程序.我想根据关键字搜索简历,并用特定的控件突出显示该单词.已尝试使用文本框.

div不支持替换对齐.

从word导入简历到文本框,其大小为with = 500px;高度= 300像素对齐方式,但不支持突出显示.

我想在该文本框控件中突出显示帮助我.



通过
Nandakumar.S

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

推荐答案

TextBox在这里是错误的控件.

我建议您使用Label控件,并用突出显示的关键字替换每个关键字.
开始于例如.将所有关键字设为粗体,或通过用< b>关键字< /b>''或``< u>关键字< /u>''.

如果可行,您可以使用HTML字体标签和属性(例如)使操作更加复杂.真心不知道那(字体标签)是否允许更改背景.

希望这会有所帮助.
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.


这篇关于在asp.net和C#的textarea控件中高亮显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆