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"];又出现说这是未实例化对象之类的。
我是一个新手,请各位大神帮帮忙,小弟非常感激。