updating Membershipuser.Email

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?
 
M

Masudur

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
 
J

Jeff

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top