The default extension of ASP. NET is. aspx, but we can see that many websites have special extensions, such as do on campus. In addition to personality, you can implement a simple pseudo-static method, that is, change the suffix to html. However, compared with URLRewriter, it is a little simple and can only change the. aspx in the connection. However, it is a method. Let's implement it now!
First, let's talk about the methods in ASP. NET 1.1:
1. ASP. net iis ing IIS-> default website-> properties-> main document-> Configuration-> ing-> Add ):
Extension. do ----> C: "WINNT" Microsoft. NET "Framework" v1.1.4322 "aspnet_isapi.dll
Limited by: GET, HEAD, POST, DEBUG
2. modify web. config
- <configuration>
- <system.web>
- <httpHandlers>
- <add verb="*" path="*.mspx" type="System.Web.UI.PageHandlerFactory" />
- httpHandlers>
- system.web>
- configuration>
The configuration of ASP. NET2.0 is slightly different. The details are as follows:
1. ASP. net iis ing IIS-> default website-> properties-> main document-> Configuration-> ing-> Add ):
Extension. do ----> C: "WINDOWS" Microsoft. NET "Framework" v2.0.50727 "aspnet_isapi.dll
Limited by: GET, HEAD, POST, DEBUG
2. modify web. config
- <configuration>
- <system.web>
- <httpHandlers>
- <add path="*.do" verb="*" type="System.Web.UI.PageHandlerFactory" />
- httpHandlers>
- <compilation>
- <buildProviders>
- <add extension=".do" type="System.Web.Compilation.PageBuildProvider" />
- buildProviders>
- compilation>
- system.web>
- <configuration>
The preceding section describes ASP. net iis ing.
- ASP. NET calls the WCF Service
- Analysis of ASP. NET verification controls
- Compatibility between the WCF Service and ASMX service in ASP. NET
- ASP. NET Applications
- ASP. NET HttpModule