隐藏ASPX扩展 [英] Hide ASPX Extension
本文介绍了隐藏ASPX扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何在ASP.Net 2.0中隐藏网页的ASPX扩展名?
谢谢,
Matt
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0?
Thanks,
Matt
推荐答案
你不能隐藏它。但是,您可以通过IIS将ASP.Net ISAPI配置为使用
不同的扩展名。
-
HTH,
Kevin Spencer
微软MVP
专业Numbskull
男子谁提出意见是明智的。
与事实争吵的人是个傻瓜。
" Matt" < MD ***** @ sorvive.DONT-SEND-SPAM.com>在留言中写道
新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
有没有人知道如何在ASP.Net 2.0中隐藏网页的ASPX扩展名吗?
谢谢,
Matt
>
You can''t hide it. You can, however, configure the ASP.Net ISAPI to use a
different extension, through IIS.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
The man who questions opinions is wise.
The man who quarrels with facts is a fool.
"Matt" <md*****@sorvive.DONT-SEND-SPAM.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0?
Thanks,
Matt
配置iis让所有请求(*)由asp.net处理
在web.config中配置相应的静态资源处理程序 - ..gif, .js,.css等
在Application_BeginRequest中使用url重写将剩余的请求发送给正确的处理程序
即
请求发送到default.aspx的 http://www.mysite.com
发送到 http://www.mysite.com/products 的请求products.aspx
请求 http://www.mysite.com / support 发送到support.aspx
....
Gerry
" Matt" < MD ***** @ sorvive.DONT-SEND-SPAM.com>在消息新闻中写道:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
有谁知道如何隐藏ASPX扩展名ASP.Net 2.0中的网页?
谢谢,
Matt
configure iis to have all requests ( * ) handled by asp.net
configure the appropriate static resource handlers in your web.config - ..gif , .js , .css etc
in Application_BeginRequest use url rewriting to send the remaining requests to the proper handler
ie
requests for http://www.mysite.com sent to default.aspx
requests for http://www.mysite.com/products sent to products.aspx
requests for http://www.mysite.com/support sent to support.aspx
....
Gerry
"Matt" <md*****@sorvive.DONT-SEND-SPAM.com> wrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0?
Thanks,
Matt
格里,
这是我遇到的问题。我可以在帖子上使用HTTPHandler隐藏和操纵扩展,但是一旦进程进行往返,ASP.NET就会自动设置action =" page.aspx"在一个表单和响应中,浏览器现在显示带扩展名的完整文件名,因为它希望发布到它自己,它必须。
我在这里错过了请求/响应如何处理Web表单的内容?
谢谢,
Matt
" gerry" < GE ** @ nospam.nospam>在消息新闻中写道:Oq ************** @ TK2MSFTNGP04.phx.gbl ...
配置iis让所有请求(*)由asp处理。 net
在web.config中配置相应的静态资源处理程序 - .gif,.js,.css等
Application_BeginRequest中的
使用url重写将剩余的请求发送到适当的处理程序
即
请求 http://www.mysite.com 发送到default.aspx
请求 http://www.mysite.com/products 发送到products.aspx
请求 http://www.mysite.com/support 发送到support.aspx
...
Gerry
" Matt" < MD ***** @ sorvive.DONT-SEND-SPAM.com>在消息新闻中写道:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
有谁知道如何隐藏ASPX扩展名ASP.Net 2.0中的网页?
谢谢,
Matt
Gerry,
Here is the problem I am having. I can hide the and manipulate the extension with a HTTPHandler on the post but once the process makes a roundtrip ASP.NET automatically sets the action="page.aspx" in a form and on the response the browser now displays the full filename with extension because it expects to post to itself, which it has to.
Am I missing something here with how Request/Response is working with web forms?
Thanks,
Matt
"gerry" <ge**@nospam.nospam> wrote in message news:Oq**************@TK2MSFTNGP04.phx.gbl...
configure iis to have all requests ( * ) handled by asp.net
configure the appropriate static resource handlers in your web.config - .gif , .js , .css etc
in Application_BeginRequest use url rewriting to send the remaining requests to the proper handler
ie
requests for http://www.mysite.com sent to default.aspx
requests for http://www.mysite.com/products sent to products.aspx
requests for http://www.mysite.com/support sent to support.aspx
...
Gerry
"Matt" <md*****@sorvive.DONT-SEND-SPAM.com> wrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0?
Thanks,
Matt
这篇关于隐藏ASPX扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文