asp.net修改网页扩展名
asp.net默认扩展名为.aspx,可是我们看到许多网站的扩展名很特别比如微软的.mspx,下面讲解如何将网页扩展名改为mspx.
ASP.NET 1.1中的方法:
1.IIS映射(IIS->默认网站->属性->主文档->配置->映射->添加):
扩展名.mspx ----> C:"WINNT"Microsoft.NET"Framework"v1.1.4322"aspnet_isapi.dll
限于:GET,HEAD,POST,DEBUG
2.修改web.config
1
<configuration>
2![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
<system.web>
4![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
<httpHandlers>
6![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
<add verb="*" path="*.mspx" type="System.Web.UI.PageHandlerFactory" />
8![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
</httpHandlers>
10![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
</system.web>
12![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
</configuration>
14![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
ASP.NET 2.0中的方法:
1.IIS映射(IIS->默认网站->属性->主文档->配置->映射->添加):
扩展名.mspx ----> C:"WINDOWS"Microsoft.NET"Framework"v2.0.50727"aspnet_isapi.dll
限于:GET,HEAD,POST,DEBUG
2.修改web.config
1
<configuration>
2![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
<system.web>
4![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
<httpHandlers>
6![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
<add path="*.mspx" verb="*" type="System.Web.UI.PageHandlerFactory" />
8![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
</httpHandlers>
10![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
<compilation>
12![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
<buildProviders>
14![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
<add extension=".mspx" type="System.Web.Compilation.PageBuildProvider" />
16![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
17
</buildProviders>
18![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
19
</compilation>
20![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
</system.web>
22![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
23
<configuration>
24![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
15
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
16
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
17
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
18
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
19
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
20
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
22
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
23
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
24
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
这个mspx可以修改为我们想要的任何类型.