文本搜索突出显示标签asp.net与C# [英] text search highlighting label asp.net with c#
问题描述
先生,
感谢您重播我.
也尝试过标签,给您带来一些不便,它支持突出显示字体,所有内容
但不支持对齐.标签连续存储数据.没有存储正确的格式.我希望显示在文档中的显示简历.
从文档中将简历详细信息提取到字符串中
然后串入标签
字符串str = document;
str = str.replace("\ r \ n","
)
然后label.text = str.tostring().
但不能替换新行
文本框可以对齐此替换换行符,但不支持标签.
由
Nandakumar
hi sir,
Thanks for replaying me.
am tried label also, there is some inconvenience, which is supporting highlighting font, all things
but not supported alignment. label storing continueously datas. did not store proper format .i want display resume which is appear in document.
am fetched the resume details from document into string
then string into label
string str = document;
str = str.replace("\r\n" ,"
")
then label.text=str.tostring().
but not replacing new line
textbox can align this replacing newline but label not support.
by
Nandakumar
推荐答案
首先,您问了一个新问题,但没有回复此 ^ ].这意味着除非像现在这样偶然偶然发现它,否则我将不会看到此响应.
第二. "/r/n"仅适用于winforms,不适用于Web应用程序.
网页的换行符为< b r/>"
这是非常非常基本的东西.我建议您购买一本ASP.Net书籍并开始阅读.
在做Asp.net时,不要再思考winforms,而要思考HTML,javascript,css和页面生命周期.
第三:尝试改善这个问题,因为大多数问题对我而言并没有任何意义.我想知道,是否需要按原样显示文档,是否无法提供指向该文档的链接,该文档在另一页中打开?
希望对您有所帮助.
First of all, You asked a new question and didn''t reply to this thread[^]. That means that I will not see this response unless I happen to stumble upon it by chance, like now.
Secondly. "/r/n" only works in winforms, not web applications.
The newline for a webpage is " < b r / >"
This is very, very basic stuff. I suggest you buy an ASP.Net book and start reading.
When doing Asp.net, stop thinking winforms and start thinking HTML, javascript, css and page life cycles.
thirdly: Try to improve this question, because most of it doesn''t really make sense to me. I''m wondering, if you need the document to display as it is, if you can''t provide a link to that document opening in another page?
hope this helps.
这篇关于文本搜索突出显示标签asp.net与C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!