ASP.NET默认登录中的身​​份验证 [英] Authentication in ASP.NET Default Login

查看:91
本文介绍了ASP.NET默认登录中的身​​份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习asp.net身份验证。我通过codeBehind了解了身份验证。

但是,我无法理解Visual Studio 2010中ASP.NET自动生成的登录/注册表单背后的机制。

我没有看到表单Login.aspx的代码隐藏和Register.aspx。

如何运作。任何人都可以解释一下。

另外一件事,当我在那里注册用户时,我无法使用FormsAuthentication.Authenticate函数对其进行身份验证。它始终是假的。

I am trying to learn asp.net authentication. I learned about authentication through codeBehind.
But, I cannot understand the mechanism behind ASP.NET Autogenerated Login/Register forms in Visual studio 2010.
I don't see a codebehind for the forms Login.aspx and Register.aspx.
How this works. Can anybody explain me please.
Another thing, When I register a user there, I cannot authenticate it using FormsAuthentication.Authenticate function. It always returs false.

推荐答案

你好,



请查看以下链接,我想你有点想法来自此链接。



http://runnable.com/UhmVlGxyiEVcAABv/how-to-use-forms-authentication-in-asp-net-for-login [ ^ ]


这篇关于ASP.NET默认登录中的身​​份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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