System.Web.Security.MembershipProvider.ValidateUser Method

Verifies that the specified user name and password exist in the data source.

Syntax

public abstract bool ValidateUser (string name, string password)

Parameters

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

Returns

true if the specified username and password are valid; otherwise, false.

Remarks

Takes, as input, a user name and a password and verifies that the values match those in the data source. MembershipProvider.ValidateUser(string, string) returns true for a successful user name and password match; otherwise, false.

For successful validations, MembershipProvider.ValidateUser(string, string) updates the MembershipUser.LastLoginDate for the specified user.

Requirements

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