ChangePassword control - remove old password

Camillia
Camillia used Ask the Experts™
on

I dragged and dropped "changepassword" control on my page. One of the fields is "password" which is OLD password. Is there anyway to remove it? I want to use this method and I dont need the "old" password textbox:

http://john.katsiotis.com/blog/asp.net-membership---change-password-without-asking-the-old
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
No there is no way to just remove the old password text box.
the process you are looking for is called Reset not change password.
depending how you utilizing the framework's membership provider, you can call ResetPassword method in the membership provider but it wont accept any parameters with a new password.
if you want to do the change do Reset then grap the new password generated by the framework and call change password on it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial