利用URL重写隐藏复杂的或者不想让别人知道的URL.
在web.config文件的system.web节点设置urlMappings。
<urlMappings enabled="true"> <clear/> <add url="~/default.aspx" mappedUrl="~/news.aspx"/> </urlMappings>