使用c#使用asp.net搜索文本并突出显示 [英] search text and highlight using asp.net with c#

查看:57
本文介绍了使用c#使用asp.net搜索文本并突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

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

它支持带有替换选项对齐的文本加载,但不会突出显示.
标签控件和div控件都支持突出显示,但不与replace选项对齐.

如果有其他针对此突出显示过程的特定控件,请告诉我.

这是一项紧急要求,请帮助我完成此任务.

通过
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.

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

推荐答案

您可以使用jQuery进行此操作.这是它的实现-更多jQuery Magic-搜索突出显示 [演示 [ Google搜索结果-jQuery搜索并突出显示文本 [
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!


在C#中引用正则表达式函数,并搜索有关match,search,replace等的示例...



在此处查找


在此处查找
Refer Regex function in C#, and search samples about match,search,replace,etc......



find here


find here


这篇关于使用c#使用asp.net搜索文本并突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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