如何配置非根目录下的Login.aspx以使用ASP.NET登录控件?
- 内容介绍
- 文章标签
- 相关推荐
本文共计143个文字,预计阅读时间需要1分钟。
我在使用ASP.NET Login Controls和Forms Authentication获取ASP.NET Web应用程序的成员资格/权限。它将直接重定向到我的应用程序根目录下不存在的Login.aspx页面。我的登录页面在一个文件夹中。
<authentication mode="Forms"> <forms defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" timeout="1440" ></forms> </authentication>
本文共计143个文字,预计阅读时间需要1分钟。
我在使用ASP.NET Login Controls和Forms Authentication获取ASP.NET Web应用程序的成员资格/权限。它将直接重定向到我的应用程序根目录下不存在的Login.aspx页面。我的登录页面在一个文件夹中。
<authentication mode="Forms"> <forms defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" timeout="1440" ></forms> </authentication>

