ASP.NET成员资格创建用户而无需requireQuestionAndAnswer [英] ASP.NET Membership Create User without requiresQuestionAndAnswer
本文介绍了ASP.NET成员资格创建用户而无需requireQuestionAndAnswer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Membership类中使用CreateUser方法而不必分配问题和答案?
How can I use the CreateUser method in the Membership class without having to assign a question and answer?
我已使用以下设置在web.config中将其禁用.
I have disabled it in the web.config with the following setting.
requiresQuestionAndAnswer="false"
我需要CreateUser方法的状态输出,但是重载需要一个问题和答案.谁能建议我该怎么做?
I need the status output from the CreateUser method, but the overload requires a question and answer. Can anyone suggest how I can go about this?
推荐答案
我还没有尝试过,但是您是否尝试过仅将这两个参数传递为null?
I haven't tried this, but have you tried just passing null for those two parameters?
这篇关于ASP.NET成员资格创建用户而无需requireQuestionAndAnswer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文