使用UEditor , 一般处理程序 以及 AspNetPager.dll 分页
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="liyanban.aspx.cs" Inherits="HtCrmWeb.Manage.liyanban" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="/js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="/ueditor/ueditor.all.min.js" type="text/javascript"></script>
<script src="/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript"></script>
<script type="text/javascript">
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
var ue = UE.getEditor('content');
// var neirong = UE.getEditor('editor').getContent();
</script>
<script type="text/javascript">
function show(a, cont) {
$(".yangshi").hide();
$("#div" + a).show();
$("#quxiao" + a).bind("click", function () {
$("#div" + a).hide();
})
var ue1 = UE.getEditor("huicontent" + a);
//回复
$("#huiOK" + a).bind("click", function () {
var res = ue1.getContent();
$.ajax({
"url": "liuyanban.ashx",
"type": "post",
"cache": false,
"data": { "action": "hui", "huicontent": res, "xId": cont },
"dataType": "text",
"error": function () { alert("error") },
"success": function (data) {
if (data == "1") {
alert("回复成功");
location.href = 'liyanban.aspx';
} else {
alert("回复失败");
location.href = 'liyanban.aspx';
}
}
})