Meeting/Html/ajax/setzixun.ashx.cs
(完整代码) 2KBusing System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
namespace WebApplication.Html.ajax
{
/// <summary>
/// setzixun 的摘要说明
/// </summary>
public class setzixun : IHttpHandler,IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["code"] != null && context.Request["intro"] != null)
{
try
{
string s = context.Session["CheckCode"].ToString();
string c = context.Request["code"].ToString();
if (c == s)
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
Hashtable ht = new Hashtable();
ht.Add("DepartID", "1");
ht.Add("CreateDate", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
ht.Add("Intro", context.Request["intro"]);
ht.Add("Inputer", "游客");
ht.Add("ChannelID", "1000049");
ht.Add("ClassID", "84");
ht.Add("Status", "未回复");
ht.Add("Content", "");
if (bll.AddContent("GZXX_U_ZXZX", ht) > 0) { context.Response.Write("Success"); }
else { context.Response.Write("Error"); }
}
else { context.Response.Write("CodeError"); }
}
catch (Exception) { context.Response.Write("CodeError"); }
}
else
{
context.Response.Write("Error");
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
