有没有一种方法可以从当前的HttpContext或web.config中获取已注册的IHttpHandler类型?
我正在尝试查看我的HttpHandler是否从WebControl中注册在web.config中。
我正在尝试查看我的HttpHandler是否从WebControl中注册在web.config中。
HttpHandler
列表:using System.Configuration;
using System.Web.Configuration;
Configuration cfg = WebConfigurationManager.OpenWebConfiguration("/");
HttpHandlersSection hdlrs = (HttpHandlersSection)cfg.GetSection("system.web/httpHandlers");