Medical/Html/ajax/sumhits.ashx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication.Html.ajax
{
/// <summary>
/// sumhits 的摘要说明
/// </summary>
public class sumhits : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
if (context.Request["htype"] == "1")
{
DBUtility.DbHelperSQL.ExecuteSql("update GZXX_U_Notice set Hits = ISNULL(Hits,0) + 1 where InfoID =" + context.Request["infoid"]);
}
else if (context.Request["htype"] == "2")
{
//DBUtility.DbHelperSQL.ExecuteSql("update GZXX_U_Magazine set Hits = ISNULL(Hits,0) + 1 where InfoID =" + context.Request["infoid"]);
}
else if (context.Request["htype"] == "3")
{
DBUtility.DbHelperSQL.ExecuteSql("update GZXX_U_NewsList set Hits = ISNULL(Hits,0) + 1 where InfoID =" + context.Request["infoid"]);
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
