A
AMP
Hello,
I am trying to send out an email that the person has to open and click
on in order to set Membership.IsApproved to true. I have
DisableCreatedUser="true" in the CreateUserWizard, so they are never
logged in.Does that mean GetUser(Which is looking for a logged in
user) is empty? If so, any suggestions?
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs
e)
{
MembershipUser newuser = Membership.GetUser();
RegisterUser NewRegistration = new RegisterUser();
string newusername = newuser.UserName;
string email = newuser.Email;
NewRegistration.SendNewRegistrationEmail(newusername,email);
}
Thanks
I am trying to send out an email that the person has to open and click
on in order to set Membership.IsApproved to true. I have
DisableCreatedUser="true" in the CreateUserWizard, so they are never
logged in.Does that mean GetUser(Which is looking for a logged in
user) is empty? If so, any suggestions?
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs
e)
{
MembershipUser newuser = Membership.GetUser();
RegisterUser NewRegistration = new RegisterUser();
string newusername = newuser.UserName;
string email = newuser.Email;
NewRegistration.SendNewRegistrationEmail(newusername,email);
}
Thanks