如何在sql server中使用富文本框插入超链接文本 [英] how to insert hyperlink text using rich textbox in sql server

查看:453
本文介绍了如何在sql server中使用富文本框插入超链接文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个富文本框我想在sql server中插入一个超链接的文本,所以,请帮助我。

i have a rich textbox i want to insert a text which is hyper linked in sql server so, please help me.

推荐答案

cserakeshcseranjan写道:
cserakeshcseranjan wrote:

虽然我在数据库中存储数据,但它只接受简单的数据。它不接受像粗体这样的html标签。

while i am storing data in database but it accepting only simple data.b ut it is not accepting html tags like bold.





这取决于数据库类型。保存rtf / html数据的字段应为:BLOB,CLOB,MEMO数据类型...



请参阅:

http://www.datanamic.com/support/storing-rtf-in-db.html [ ^ ]

在SQL Server数据库中存储RTF数据 [ ^ ]

使用格式化将富文本框的数据存储到数据库 [ ^ ]

http://stackoverflow.com/questions/15983278/storing-data-of-rich-text-box-to -database-with-formatting [ ^ ]



It depends on database type. The field which holds rtf/html data should be: BLOB, CLOB, MEMO data type...

Please see:
http://www.datanamic.com/support/storing-rtf-in-db.html[^]
Store RTF Data in a SQL Server Database[^]
Storing data of rich text box to database with formatting[^]
http://stackoverflow.com/questions/15983278/storing-data-of-rich-text-box-to-database-with-formatting[^]


您应该先对HTML标记进行编码,然后将其发送到数据库中存储,并在发布时对其进行解码。想要将它们显示在UI中。



这是一个关于网络编码的链接:http://demo.nickname.net/demo/testpak/encode.pl [ ^ ]
You should encode the HTML tags before to send them for storing in your database, and to decode them back when you want to show them into the UI.

Here is a link about web encoding: http://demo.nickname.net/demo/testpak/encode.pl[^]


这篇关于如何在sql server中使用富文本框插入超链接文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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