首次推送
This commit is contained in:
46
Mtxfw.VipSite/artDialog/net/getContent.ashx
Normal file
46
Mtxfw.VipSite/artDialog/net/getContent.ashx
Normal file
@@ -0,0 +1,46 @@
|
||||
<%@ WebHandler Language="C#" Class="Mtxfw.VipSite.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;
|
||||
namespace Mtxfw.VipSite
|
||||
{
|
||||
public class getContent : IHttpHandler
|
||||
{
|
||||
|
||||
public void ProcessRequest(HttpContext context)
|
||||
{
|
||||
context.Response.ContentType = "text/html";
|
||||
|
||||
//获取数据
|
||||
string content = context.Request.Form["myEditor"];
|
||||
|
||||
|
||||
//存入数据库或者其他操作
|
||||
//-------------
|
||||
|
||||
//显示
|
||||
|
||||
|
||||
context.Response.Write("<script src='../third-party/jquery.min.js'></script>");
|
||||
context.Response.Write("<script src='../third-party/mathquill/mathquill.min.js'></script>");
|
||||
context.Response.Write("<link rel='stylesheet' href='../third-party/mathquill/mathquill.css'/>");
|
||||
context.Response.Write("<div class='content'>" + content + "</div>");
|
||||
|
||||
}
|
||||
|
||||
public bool IsReusable
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user