| |||||||||||||||||||||||||||
<httpHandlers> SectionASP.NET Syntax ASP.NET Configuration Sections Maps incoming requests to the appropriate IHttpHandler or IHttpHandlerFactory class, according to the URL and HTTP verb specified in the request. <httpHandlers>
<add verb = "verb list"
path = "path/wildcard"
type = "type,assemblyname" />
<remove verb = "verb list"
path = "path/wildcard" />
<clear />
</httpHandlers>
The <httpHandlers> tag supports three subtags.
The <add> tag supports three attributes.
The <remove> tag supports two attributes.
RemarksThe <httpHandlers> settings are inherited by subdirectories. The <add> directives are processed in a top-down sequential order. If two or more <add> subelements specify the same verb/path combination, the final <add> overrides all others. Syntax ExampleThe following example maps all HTTP requests to the classes MyHandler.New and MyHandler.Fin, in the assembly MyHandler that is in the file Myhandler.dll. <configuration>
<system.web>
<httpHandlers>
<add verb = "*" path = " MyHandler.New"
type = "MyHandler.New, MyHandler.dll" />
<add verb = "*" path = " MyHandler.Fin"
type = " MyHandler.Fin, MyHandler.dll" />
</httpHandlers>
<system.web>
</configuration>
See AlsoASP.NET Configuration HttpHandlersSection Class |
| ||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme