updating Membershipuser.Email

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hey

..net 3.5

I want to update the email of the user, so I was trying this code, but it
doesn't update the email address.
TextBox text;
text = (TextBox)tblUserInfo.FindControl("Email");
MembershipUser user = Membership.GetUser(Profile.UserName);
user.Email = text.Text;

any suggestions on what I should do to solve this?
 
hey

.net 3.5

I want to update the email of the user, so I was trying this code, but it
doesn't update the email address.
TextBox text;
text = (TextBox)tblUserInfo.FindControl("Email");
MembershipUser user = Membership.GetUser(Profile.UserName);
user.Email = text.Text;

any suggestions on what I should do to solve this?

Hi..

did you called the method

Membership.UpdateUser(userobject);

after the operation...

Take a look at this article

http://msdn2.microsoft.com/en-us/library/system.web.security.membership.updateuser.aspx

Thanks
Masudur
http://munna.shatkotha.com
 
thank you


hey

.net 3.5

I want to update the email of the user, so I was trying this code, but it
doesn't update the email address.
TextBox text;
text = (TextBox)tblUserInfo.FindControl("Email");
MembershipUser user = Membership.GetUser(Profile.UserName);
user.Email = text.Text;

any suggestions on what I should do to solve this?

Hi..

did you called the method

Membership.UpdateUser(userobject);

after the operation...

Take a look at this article

http://msdn2.microsoft.com/en-us/library/system.web.security.membership.updateuser.aspx

Thanks
Masudur
http://munna.shatkotha.com
 
Back
Top