如何在ASP.NET Web Forms数据库中存储来自CKEditor的富文本数据..? [英] how to store rich text data from CKEditor in ASP.NET Web Forms database.. ?

查看:216
本文介绍了如何在ASP.NET Web Forms数据库中存储来自CKEditor的富文本数据..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题非常简单,请建议我。



我正在尝试在ASP.Net中创建一个简单的博客系统。



我想使用CKEditor为用户提供发布文章的功能,就像wordpress一样。



i在我的页面中集成了CKEditor,但是有问题。



数据将如何存储在数据库中,因为它将是丰富的文本数据,包括图像,文本等等。所以它是如何存储的在数据库的单个字段中。什么是正确的方式将其检索回来以后再显示为文章。





遇到困难时,对此。我正在开发ASP.Net Web Forms Technology。





i是新手,请指导我,这很紧急:(

My question is very simple, please suggest me.

I am trying to create a simple blog system in ASP.Net.

I want to use CKEditor to give users the functionality of posting articles, just like wordpress.

i integrated CKEditor in my page, but having a problem.

How the data will be stores in the database, as it will be rich text data, including images, text etc. so how can it be stores in the single field in the database. and what will be the right way to retrieve it back to show as a article later.


having tough times, regarding this. I am working on ASP.Net Web Forms Technology.


i am a newbie, please guide me, it's very urgent :(

推荐答案

您可以将它存储为NVARCHAR(MAX)或ntext用于所有字符。将图像存储在varbinary中或沿着这些行存储。
You could store it as NVARCHAR (MAX) or ntext for all characters. Store images in a varbinary or something along those lines.


这篇关于如何在ASP.NET Web Forms数据库中存储来自CKEditor的富文本数据..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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