C#.Net Web应用程序文本框中的超链接 [英] Hyperlink in text box of C# .Net web applications

查看:95
本文介绍了C#.Net Web应用程序文本框中的超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何在包含大量数据的文本框中的文本之间放置超链接?



I需要它在ASP .Net 1.1 Web应用程序中。

解决方案

请参阅此主题


会员5744528写道:

如何在文本框中的文本之间放置一个超链接





不可能。您不能在文本框或文本区域中放置超链接。如果你需要做类似的事情,那么开发一个基于div的自定义控件,可以用作文本框。

Textbox不会将html标记放入其中,因此不可行。



其他选项是使用 richtextbox / HtmlEditor控件 [ ^ ]这样做。第三方控件允许相同。


不能将HTML内容传递到文本框或Richtextbox。



虽然您可以使用以下链接获取HTML编辑器



www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx [ ^ ]



这可能对您有所帮助。

Does any one know how to place a hyperlink in between the text in a text box containing huge amount of data?

I need it in ASP .Net 1.1 web applications.

解决方案

See the last post in this thread.


Member 5744528 wrote:

how to place a hyperlink in between the text in a text box



It is not possible. You cannot place a hyperlink inside a textbox or a textarea. If you need to do something like it then develop a custom control that is based on a div and can be used as a textbox.
Textbox does not take html markups placed into it and thus it's not feasible.

Other option would be to use richtextbox/HtmlEditor control[^] to do it. There are 3rd party controls that allows the same.


No you cannot pass the HTML Content into the textbox or Richtextbox.

Although you can use the below link for the HTML editor

www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx[^]

this might help you.


这篇关于C#.Net Web应用程序文本框中的超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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