为什么使用ihttpModule之后.
原本好好的网站图片都不能正常显示了.
查看图片路径是正确的啊.
为什么不能正常显示啊.高手指教指教啊.
代码为:
 public class demo:IHttpModule
   {
       public void Init(HttpApplication http)
       { 
          http.BeginRequest+=new EventHandler(http_BeginRequest);
          http.EndRequest+=new EventHandler(http_EndRequest);
       }
       public void http_BeginRequest(object sender,EventArgs e)
       {
        HttpApplication application = (HttpApplication)sender;
        HttpContext context = application.Context;
        context.Response.Write(@"<h1><font color=red>
            HelloWorldModule: Beginning of Request
            </font></h1><hr>");       }
       public void http_EndRequest(object sender,EventArgs e)
       {
           HttpApplication application = (HttpApplication)sender;
        HttpContext context = application.Context;
        context.Response.Write(@"<hr><h1><font color=red>
            HelloWorldModule: End of Request</font></h1>");       }
       public void Dispose()
       { 
        
       }
   }
web.config
:
    <httpModules>
      <add name="BLL.demo" type="BLL.demo"/>
    </httpModules>