SenBiTeSolution.UI/ueditor/net/getContent.ashx

(完整代码) 1KB

<%@ 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"]);
        string content1 = context.Server.HtmlEncode(context.Request.Form["myEditor1"]);
        //存入数据库或者其他操作
        //-------------

        //显示
        context.Response.Write("第1个编辑器的值");
        context.Response.Write(context.Server.HtmlDecode(content));
        context.Response.Write("<br/>第2个编辑器的值<br/>");
        context.Response.Write(context.Server.HtmlDecode("<textarea style='width:500px;height:300px;'>"+content1+"</textarea><br/>"));
        context.Response.Write("<input type='button' value='点击返回' onclick='window.history.go(-1)' />");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。