How can I use the CreateUser method in the Membership class without having to assign a question and answer?
I have disabled it in the web.config with the following setting.
requiresQuestionAndAnswer="false"
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?
I haven't tried this, but have you tried just passing null for those two parameters?
you need to set parameters in web.config
<system.web>
<membership>
<providers>
<add name="YOURMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="con" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Clear" applicationName="YourAppName" maxInvalidPasswordAttempts="2147483647"/>
I tried this. Its working Fine. Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With