ChangePassword control not firing method in membership provider

Last post 05-14-2008 3:16 PM by yasserzaid. 2 replies.

Sort Posts:

  • ChangePassword control not firing method in membership provider

    05-05-2008, 9:12 AM

     i've got a custom membership provider that is defined in my web.config.  It works fine when logging in.

    So on my changepassword page i use the changepassword control, when the ok button is fired I'm expecting it to hit the changepassword method in my membershipprovider but it doesn't.  It does execute the GetUser method but never the changepassword.

     

    What am I missing 

  • Re: ChangePassword control not firing method in membership provider

    05-07-2008, 3:44 AM

    Hi

    I wonder if your custom membership provider override the changepassword method correctly. Could you past all the code so that we can find some clue?

    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: ChangePassword control not firing method in membership provider

    05-14-2008, 3:16 PM

    Hi,

    Try this

     

    protected void ChangePassword1_ChangedPassword(object sender, EventArgs e)
        {
            MembershipUser user = Membership.GetUser();
            user.ChangePassword(ChangePassword1.CurrentPassword, ChangePassword1.NewPassword);
    
         }
     
    Regards,
    Yasser Zaid

    ~ Please remember to click Mark as Answer on this post if it helped you ~
Page 1 of 1 (3 items)