I’m trying to code a user admin page, but the Membership API doesn’t allow much in terms of direct updates to e.g. password question. Is there control that I can use for this perhaps?
I’m trying to code a user admin page, but the Membership API doesn’t allow
Share
To answer your specific question about updating the password question:
For your .aspx page or .ascx control you can use the following markup:
For the code behind you need at least this much code:
If you notice the intro text of the control says that we need the password to confirm the change. This is correct since the membership provider method needs to have the current password passed in along with the old and new security question. Most passwords are one way encrypted so I have provided this control to the user as a self-service type of control instead of being on the administrative side of things.
Good luck, and hope this helps some.