【发布时间】:2018-05-30 08:26:43
【问题描述】:
我的应用程序中有一个 URL http://localhost/Login.aspx 不起作用:
<a href='http://localhost/Login.aspx'>Login</a>
但它适用于:
<a href='http://localhost:51807/Login.aspx'>Login</a>
问题是:
当用户点击登录<a href='http://localhost/Login.aspx'>Login</a><a href='http://localhost/Login.aspx'>Login</a>时,如何将端口号51807分配给URLhttp://localhost/Login.aspx?
【问题讨论】:
-
为什么在链接中使用
http://localhost? -
因为链接在我的本地机器上。
-
登录 ?
-
url 更改为 localhost:51807/~/Login.aspx 并表示找到的页面。
-
抱歉,我不太熟悉 ASP.NET,无法理解您的问题。希望这个搜索能以某种方式帮助你bing.com/…