在C#Web应用程序的标签中将搜索字符串加粗 [英] bold the search string in label in C# web applications

查看:71
本文介绍了在C#Web应用程序的标签中将搜索字符串加粗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在标签中显示文本.
当我搜索文本时,仅我的搜索文本必须为粗体.


我的搜索文本仅以单字搜索为粗体.
(示例:-我的搜索字符串就像.net一样,可以更改为粗体.


但是,如果我的搜索文本包含很多单词,则它不起作用.

(就像.net和sqlserver以及开发人员
它不起作用.

我想将.net和sqlserver和开发人员设置为粗体.

we displaying the text in label.
when iam searching text,only my search text has to be bold.


My search text is bold only for single word search only.
(example:-my search string is like .net it can be changed as bold.


But if my search text is contains many words it is not working.

(That is like .net and sqlserver and developer
it is not working.

I want to make .net and sqlserver and developer as bold.

推荐答案

看看这个

http://stackoverflow.com/questions/1629928/search-keyword-highlight- in-asp-net-c [ ^ ]
Take a look at this

http://stackoverflow.com/questions/1629928/search-keyword-highlight-in-asp-net-c[^]


这篇关于在C#Web应用程序的标签中将搜索字符串加粗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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