System.Web.Security.MembershipProvider.ChangePasswordQuestionAndAnswer Method

Processes a request to update the password question and answer for a membership user.

Syntax

public abstract bool ChangePasswordQuestionAndAnswer (string name, string password, string newPwdQuestion, string newPwdAnswer)

Parameters

name
Documentation for this section has not yet been entered.
newPwdQuestion
Documentation for this section has not yet been entered.
newPwdAnswer
Documentation for this section has not yet been entered.
password
The password for the specified user.

Returns

true if the password question and answer are updated successfully; otherwise, false.

Remarks

Takes, as input, a user name, a password, a password question and a password answer, and updates the password question and answer in the data source if the supplied user name and password are valid.

If the supplied user name and password are not valid, false is returned.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0