V一夕意相左 2014-10-17 08:02 采纳率: 0%
浏览 3758

在asp.net中如何在后台获取kindeditor输入的内容

js代码:

var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="content"]', { allowFileManager : true, resizeType : 1, allowPreviewEmoticons : false, allowImageUpload : true, items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|', 'emoticons', 'image', 'link'] }); });

ASP.net代码:
/asp:Label

后台代码:
protected void TiJiao_Click(object sender, EventArgs e)
{
Label1.Text=Request.Form["Content"];
}

刚开始我是让Label1.Text=Content.Text,但是没用,说没有runat="server",然后我又把它加上去之后,KindEditor编辑器又出不来了,后来我把textarea 换成TextBox后Content.Text获取到的是空值,后来在网上看到Request.Form["Content"];又出现说这是未实例化对象之类的。
我是一个新手,请各位大神帮帮忙,小弟非常感激。

  • 写回答

1条回答

  • 都城南庄 2016-04-16 08:44
    关注

    图片说明

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算