Asp.net 如何在运行时获取forms loginurl的值?
我的web.config中有以下内容:Asp.net 如何在运行时获取forms loginurl的值?,asp.net,.net,forms-authentication,Asp.net,.net,Forms Authentication,我的web.config中有以下内容: ... <system.web> <sessionState mode="InProc" timeout="30" cookieless="UseCookies" /> <authentication mode="Form"> <forms loginUrl="http://myurl" path="/" cookieless="UseCookies" slidingExpiration
...
<system.web>
<sessionState mode="InProc" timeout="30" cookieless="UseCookies" />
<authentication mode="Form">
<forms loginUrl="http://myurl" path="/" cookieless="UseCookies" slidingExpiration="true" requireSSL="true" />
</authentication>
...
如何在运行时获取loginurl的值?System.Web.Security.FormsAuthentication.loginurl
获取FormsAuthentication类创建的登录页的URL
将重定向到
详情见