What is Membership.GeneratePassword Method?
Using Membership.GeneratePassword Method we can
create a random password according to our requirement,
Syntax:-
public static string GeneratePassword(
int length,
int numberOfNonAlphanumericCharacters
)
Length:-
The number of characters in the
generated password. The length must be between 1 and 128 characters.
Type: System.Int32
NumberOfNonAlphanumericCharacters:-
The minimum number
of non-alphanumeric characters (such as @, #, !, %, &, and so on) in the
generated password.
Type: System.Int32
For the example :- generate random password using mermbership
What is Membership.GeneratePassword Method?
Reviewed by NEERAJ SRIVASTAVA
on
6:23:00 PM
Rating:
No comments: