ASP.NET - IIS自定义映射扩展 - 如何? [英] ASP.NET - IIS Custom Mapping Extensions - How?

查看:146
本文介绍了ASP.NET - IIS自定义映射扩展 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何人去有关创建于IIS /重新路由我的定制开发.ASPX页6.0页的东西完全定制的W / O的.aspx扩展名,比如,.vato?例如,而不是我的第一句话:?Default.aspx的ID = 123,我想用户看到:Default.vato ID = 123?

I am wondering how one goes about creating/rerouting my custom developed .ASPX pages on IIS 6.0 pages to something totally custom w/o the .aspx extension, say, .vato? For example, instead of my page saying: Default.aspx?ID=123, I would like users to see: Default.vato?ID=123.

什么概念?这是可行的?我在哪里可以研究更多关于这个话题?

What concept is? Is this doable? Where can I research more on this topic?

推荐答案

这与其说是一个.NET的问题,因为它是一个IIS的问题。

It's not so much a .net question as it is an IIS question.

基本上,IIS着眼于所请求的扩展,并相应地做出响应。

Basically, IIS looks at what extension is being requested and responds accordingly.

有是所有的文件扩展名和这些要求时,应采取什么操作的列表。在.NET方面,这些都是的.aspx,的.ascx,ASMX等,这些基本上都是ISAPI筛选器。

There is a list of all file extensions and what actions should be taken when these are requested. In terms of .net, these are .aspx, .ascx, asmx, etc. These are basically ISAPI filters.

根据您的IIS版本。如果你打开​​IIS管理器,选择有问题的网站,选择属性,然后主目录,然后配置,映射下,你会看到所有文件扩展名,这将被要求采取行动这一请求的应用程序。

Depending on your version of IIS. If you open IIS Manager, choose the website in question, go to Properties, then Home Directory, then Configuration, under Mappings you will see all file extensions and the application that will be called to action this request.

因此​​,如果您添加对.vato一个条目,并将其指向你的版本的.NET,如C:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\ ASPNET_ISAPI.DLL那么.vato文件会然后进行处理一样的.aspx文件

Therefore, if you add an entry for .vato, and point it to your version of .net, such as C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll then the .vato file will then be treated the same as a .aspx files.

这篇关于ASP.NET - IIS自定义映射扩展 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆