天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.1 KiB

<%@ WebHandler Language="C#" Class="getContent" %>
/**
* Created by visual studio 2010
* User: xuheng
* Date: 12-3-6
* Time: 下午21:23
* To get the value of editor and output the value .
*/
using System;
using System.Web;
public class getContent : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/html";
//获取数据
string content = context.Server.HtmlEncode(context.Request.Form["myEditor"]);
//存入数据库或者其他操作
//-------------
//显示
context.Response.Write("<script src='../ueditor.parse.js' type='text/javascript'></script>");
context.Response.Write(
"<script>uParse('.content',{"+
"'rootPath': '../'"+
"})"+
"</script>");
context.Response.Write("第1个编辑器的值");
context.Response.Write("<div class='content'>" + context.Server.HtmlDecode(content) + "</div>");
}
public bool IsReusable {
get {
return false;
}
}
}