Hello,
I have a class is called "CustomMembershipProvider" and it inherits "MembershipProvider" class.
Now, I have an override method is called "CreateUser", but I don't know how to write an insert query to create membershipuser (to ASPNETDB database)
Here's my codes:
public override MembershipUser CreateUser(string username, string
password, string email, string passwordQuestion, string
passwordAnswer, bool isApproved, object providerUserKey,
out MembershipCreateStatus status)
{
SqlConnection cnn = null;
SqlCommand cmd = null;
MembershipUser newUser = null;
try
{
cnn = new SqlConnection();
cnn.ConnectionString = ConnectionManager.GetASPNETConnectionString();
cnn.Open();
...
Go to the complete details ...