创建 OnBeginRequest 方法,该方法挂接到 HttpApplication 的 BeginRequest 事件:
public void OnBeginRequest(Object s, EventArgs e)
{
HttpApplication app = s as HttpApplication;
app.Context.Response.Write("Hello from OnBeginRequest in custom module.<br>");
if(_eventHandler!=null)
_eventHandler(this, null);
}
|
请发表评论