如何显示数据库中的链接

时间:2022-08-16 19:30:10

I have a form with a multiline textbox that is a description. I was wondering is there anyway to make it so that if i type in a url like www.anywebsiteintheworld.com in that multiline textbox along with other text and later display that information where the link in the middle of the description is clickable?

我有一个带有多行文本框的表单,这是一个描述。我想知道是否有这样做,以便如果我在多行文本框中输入像www.anywebsiteintheworld.com这样的网址以及其他文本,然后显示描述中间的链接可点击的信息?

Right now I grab the information with textbox.Text.Trim() and display it as a label.Text and it doesnt work.

现在我用textbox.Text.Trim()获取信息并将其显示为label.Text,它不起作用。

1 个解决方案

#1


2  

You can't do that in a normal HTML textbox. You'll need a JavaScript based rich text editor such as CKEditor.

您不能在普通的HTML文本框中执行此操作。您需要一个基于JavaScript的富文本编辑器,例如CKEditor。

#1


2  

You can't do that in a normal HTML textbox. You'll need a JavaScript based rich text editor such as CKEditor.

您不能在普通的HTML文本框中执行此操作。您需要一个基于JavaScript的富文本编辑器,例如CKEditor。