如何在ASP.NET中的URL中隐藏扩展名 [英] How to hide extention in url in asp.net
本文介绍了如何在ASP.NET中的URL中隐藏扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要在asp.net中的URL中隐藏.aspx扩展名
To hide .aspx extention in url in asp.net
推荐答案
使用URL重写并显示您选择的名称.
请参阅本文以获取帮助
使用ASP.NET进行URL重写 [
Use URL rewriting and display name of your choice.
Refer this article for help
URL Rewriting with ASP.NET[^]
使用如果要对URL进行更多控制,则可以使用MVC,否则,可以将扩展名更改为所需的扩展名,但是您需要在IIS中注册它,以便它了解如何处理它.
Use MVC if you want more control over the URL, otherwise, you can change the extension to whatever you would like, but you''ll need to register it with IIS so it understands how to handle it.
这篇关于如何在ASP.NET中的URL中隐藏扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文