📄 iplookup.cs
字号:
using System;
using System.Web;
namespace webvisitStatistic.Reporter.IPLook
{
/// <summary>
/// IpLookUp 的摘要说明。
/// </summary>
public class IpLookup:IHttpHandler
{
#region IHttpHandler
/// <summary>
/// document.write("");
/// </summary>
/// <param name="context"></param>
public void ProcessRequest(HttpContext context)
{
HttpRequest request = context.Request;
HttpResponse response= context.Response;
IpLookTable.IpPosition pos =
IpLookTable.Instance().SearchIpPostion(request.QueryString["ip"]);
response.Write(
"document.write(\""+pos.WidePos+ pos.NarrowPos + "\");");
}
public bool IsReusable
{
// To enable pooling, return true here.
// This keeps the handler in memory.
get { return true; }
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -