FineUI 官方论坛
标题:
UEditor显示正常,后台取不到值,请高手看一下...
[打印本页]
作者:
小小程序员
时间:
2012-12-20 12:27
标题:
UEditor显示正常,后台取不到值,请高手看一下...
如题:后台取值代码:
protected void Button1_Click(object sender, EventArgs e)
{
string body = Request.Form["UEditor1"].ToString();
string a = "";
}
复制代码
前台界面代码
<form id="form1" runat="server">
<x:PageManager ID="PageManager1" runat="server" />
<textarea name="UEditor1" id="UEditor1"></textarea>
<x:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"> </x:Button>
</form>
<script type="text/javascript" src="./ueditor/editor_all.js"></script>
<script type="text/javascript" src="./ueditor/editor_config.js"></script>
<script type="text/javascript">
var editor = new UE.ui.Editor();
//editor.render("UEditor1");
//1.2.4以后可以使用一下代码实例化编辑器
UE.getEditor('UEditor1')
// 提交数据之前同步到表单隐藏字段--加上下面的JS点击按钮没反应,郁闷
//X.util.beforeAjaxPostBackScript = function () {
//editor.sync();
//};
// 更新编辑器内容
// function updateUEditor(content) {
// editor.setContent(content);
//}
</script>
复制代码
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4