ASP.NET在浏览器中显示默认页面的完整网址 [英] ASP.NET Show Full Url in Browser for the Default Page

查看:171
本文介绍了ASP.NET在浏览器中显示默认页面的完整网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IIS中设置默认文档"以显示默认"页面(default.aspx),并使用我实现的主机标头访问它时;它仅显示主机头地址,而不显示浏览器中的完整页面地址.

When I set the Default Document in IIS to display my Default page (default.aspx), and access it using the host header I implemented; it only shows the host header address and not the full page address in the browser.

例如:

主机头:http://mysite IIS默认文档:/PageContainer/default.aspx

Host header: http://mysite IIS default document: /PageContainer/default.aspx

当我通过浏览器输入http://mysite时;它会打开http://mysite/PageContainer/default.aspx,但在浏览器地址栏中仅显示http://mysite地址.

when I enter http://mysite through the browser; it opens the http://mysite/PageContainer/default.aspx but shows only the http://mysite address in the browser address bar.

如何更改它以在浏览器地址栏中显示完整的网址,如http://mysite/PageContainer/default.aspx.

How can I change it to show the full url like http://mysite/PageContainer/default.aspx in the browser address bar either.

推荐答案

您可以为

http://mysite --> http://mysite/PageContainer/default.aspx

这篇关于ASP.NET在浏览器中显示默认页面的完整网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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