using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Web; namespace XDomainProxy { public class DomainProxy: IHttpModule { public v…
随便写一个类继承IHttpModule 实现IHttpModule中的两个方法 Init() Dispose() public void Init(HttpApplication context) { //throw new NotImplementedException(); //恰好在 ASP.NET 开始执行事件处理程序(例如,某页或某个 XML Web services)前发生. context.PreRequestHandlerExecute += new EventHandler(C…
在App_Code文件中添加TGModule.cs using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControl…