我如何...将登录设置为第一次 [英] How do i... set login to be the first all times

查看:95
本文介绍了我如何...将登录设置为第一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天同事们。



我需要帮助才能让我的登录表单首先在项目的debuging阶段开始。一个人需要始终首先登录。如何在asp.net表单上设置它?



我尝试过:



< authentication mode =Forms>

< forms loginUrl =〜/ Account / Login.aspx/>


Good day colleagues.

I need help on how can make my login form start first on the debuging stage on my project. a person need to login first at all time. how to set that on asp.net forms?

What I have tried:

<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" />

推荐答案

您需要做的就是使用FormsAuthenticaiton。这很容易做到,请参阅此文章以获取更多信息, ASP.NET Forms身份验证概述 [ ^ ]。
All you need to do is use FormsAuthenticaiton. It's pretty easy to do, see this article for more information, ASP.NET Forms Authentication Overview[^].


这篇关于我如何...将登录设置为第一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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