110,529
社区成员
发帖
与我相关
我的任务
分享
<system.web>
<httpHandlers>
<add path="xxx.ashx" verb="*" type="xxx" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="xxx.ashx" path="xxx.ashx" verb="*" type="xxx" />
</handlers>
</system.webServer>
SystemWebSectionGroup s = new SystemWebSectionGroup();
s.HttpHandlers.Handlers.Add(new HttpHandlerAction() { Path = "xxx.ashx", Type = "xxx", Verb = "*", Validate = true });