⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iplookup.cs

📁 精通网络应用系统开发 光盘 该书是人民邮电出版社出版的
💻 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 + -