Changing Membership provider

Need to change the membership provider programmatically
 
string username = "user";
string password = "password";
MembershipUser membershipUser = Membership.Providers["SqlMembershipProviderOther"].GetUser(username);
membershipUser.ChangePassword(membershipUser.ResetPassword(), password);
 
Also worth checking out here 
blog comments powered by Disqus

About the author

You have probably figured out by now that my name is Bryan Avery (if not, please refer to your browser's address field).  Technology is more than a career to me - it is both a hobby and a passion.  I'm an ASP.NET/C# Developer at heart...

Month List