隐藏文件扩展名。 [英] hide file extension.

查看:96
本文介绍了隐藏文件扩展名。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用visual studio 2013从浏览器隐藏.aspx文件扩展名?

how to hide .aspx file extension form the browser using visual studio 2013?

推荐答案

您可能希望使用URL重写。它很容易完成。请遵循以下文章:

URL重写 [ ^ ]
you might want to use URL rewriting. It can be easily done. Follow this article for that:
URL Rewriting[^]


按照Schatak的指示。

你也可以查看以下两个例子。



< a href =http://www.codeproject.com/Articles/77199/URL-Routing-with-ASP-NET-4-0>使用ASP.NET 4.0进行URL路由



http://www.aspsnippets.com/Articles/How-to-hide-remove-ASPX-extension-in-URL-in-ASPNet.aspx [ ^ ]
Follow Schatak's instruction.
You can also check below two examples.

URL Routing with ASP.NET 4.0

http://www.aspsnippets.com/Articles/How-to-hide-remove-ASPX-extension-in-URL-in-ASPNet.aspx[^]


这篇关于隐藏文件扩展名。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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