string JupSql = "update NewsInfo set NewsTitle=@NewsTitle,NewsContent=@NewsContent where NewsInfoId ="+jupID; SqlDataReader dr = DbSqlHelper.ExecuteReader(CommandType.Text,JupSql, new SqlParameter("@NewsTitle",txtNes.Text), new SqlParameter("@NewsContent",fckUp.Value));
asp.net有专用的控件吗?
演示地址:
http://10.34.40.125:8005/examples/index.html2 CKeditor 功能强大,界面美观,支持自定义皮肤,扩展性比较强,使用量非常广泛 可配合扩展文件管理器KCFinder上传文件
演示地址:
http://10.34.40.125:8006/_samples/index.html3 FCKedior 功能强大,有针对.NET的dll文件,直接调用,不需要太复杂的安装步骤即可使用,用户量庞大,兼容主流浏览器 有上传文件漏洞
演示地址:
http://10.34.40.125:8007/_samples/default.html4 FreeTextBox 为.NET 量身定做的一个开源服务器控件,一款优秀的自由软件,能很容易在web开发中使用,有免费和付费版,支持主流浏览器,支持ASP.NET 1.1, 2.0, 3.5, and 4.0 演示地址:
http://www.freetextbox.com/demos/
5 MarkItUp 一个基于jquery的开源文本编辑器,功能简洁,非常轻巧,支持IE6-7-8, Safari 3+, Firefox 3+ 演示地址:
http://itup.jaysalvat.com/examples/html/
6 WidgEditor 小巧,才几十KB,易用, 标准,对XHTML支持得非常好,可以通过修改css和js文件定制样式和功能 演示demo:
http://www.themaninblue.com/experiment/widgEditor/
7 Damn Small Rich text Editor 基于jQuery开发,有文本编辑器的基本功能,可设置文本编辑区大小,Ajax上传图片等。 演示地址:
http://www.avidansoft.com/dsrte/
8 OpenWySiWyg 纯JavaScript开发,功能强大开源的WYSIWYG编辑器。支持多种浏览器和Web编程语言 演示地址:
http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm
9 jHtmlArea 简单、轻量级、可扩展、基于jQuery开发的WYSIWYG HTML编辑器。这个组件可以很方便将页面中的TextArea标签转换成一个 WYSIWYG HTML Editor。整个编辑器包括图片和CSS大小只有22k 演示地址:
http://pietschsoft.com/demo/jHtmlArea/
10 Reditor Reditor是一个基于JQuery和JQuery UI开发的HTML Editor,功能强大,美观,具有良好的兼容性 演示地址:
http://www.wymeditor.org/demo/
11 xhEditor 基于jQuery开发的简单迷你并且高效的可视化XHTML编辑器,支持ajax上传,兼容IE 6.0-8.0,Firefox 3.0+,Opera 9.6,Chrome 1.0,Safari 3.22。 演示地址:
http://xheditor.com/demo
新闻发布功能中“FCKedior”和“FreeTextBox”那个比较合适呢?
FreeTextBox好像少了个上传功能
2. 前台:
<FCKeditorV2:FCKeditor ID="fckUp" runat="server" Height="400px">
</FCKeditorV2:FCKeditor>
3. 后台:
string JupSql = "update NewsInfo set NewsTitle=@NewsTitle,NewsContent=@NewsContent where NewsInfoId ="+jupID;
SqlDataReader dr = DbSqlHelper.ExecuteReader(CommandType.Text,JupSql, new SqlParameter("@NewsTitle",txtNes.Text), new SqlParameter("@NewsContent",fckUp.Value));
4.完毕