views:

508

answers:

3

Hi,

Remove or disable security question and answer from createuserwizard

please give some idea on above question.

Thanks

A: 

You cant just remove them, built in javascript screams at you.

  1. Look at the source for the createuserwizard control, set the style for the table rows to "display:none", example: <tr style="display:none;">

  2. Remove the required field validator controls associated with the question\answer textboxes

  3. Set the MembershipProvider web config string to state requiresQuestionAndAnswer="false"

Its not a clean way of removing it, but i suppose its not all that bad..

Eric W
A: 

Hi,

I would like to remove the security question in the way you described, but I do not have the 'MembershipProvider' in the web.config. I could I generate it?

Thanks!

Karel
A: 

A Microsoft MVP answered it best on the ASP.net forums.

Remove Security Question and Answer from CreateUserWizard

zeroef