当 asp:Login
控件的 LoginError
事件触发时,我如何找到错误发生的原因?
是否有类似 e.ErrorType
的属性告诉我登录失败的原因?或者我是否必须像本教程中那样手动检查所有内容:
http://www.asp.net/security/tutorials/validating-user-credentials-against-the-membership-user-store-cs或 http://www.aspnettutorials.com/tutorials/controls/howto-errors-login-asp4-csharp.aspx
最佳答案
就我过去看到的 LoginError
事件而言,没有“开箱即用”的错误类型信息(尽管我同意你的看法,它将是 < strong>真的很好)。事实上,根据我的经验,对于 asp:Login
控件中的那个事件,EventArgs
参数对我来说始终是 null
=/
其他人很有可能可能知道我不知道的事情,但我认为我们目前都在手动确定LoginError
发生的原因。
关于c# - 如何找到asp :Login LoginError error type,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7191103/