473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

updating Membershipuser.Email

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?
Mar 25 '08 #1
2 1662
On Mar 25, 10:24*pm, "Jeff" <it_consulta...@hotmail.com.NOSPAMwrote:
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/lib...pdateuser.aspx

Thanks
Masudur
http://munna.shatkotha.com
Mar 25 '08 #2
thank you
"Masudur" <mu*****@gmail.comwrote in message
news:5f**********************************@i12g2000 prf.googlegroups.com...
On Mar 25, 10:24 pm, "Jeff" <it_consulta...@hotmail.com.NOSPAMwrote:
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/lib...pdateuser.aspx

Thanks
Masudur
http://munna.shatkotha.com
Mar 25 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: brett_fyisystems | last post by:
I'm trying to implement an inherited MembershipUser class for a custom MembershipProver for RTM ASP.NET 2.0 I'm using an external assembly that implements these classes. I've signed the...
8
by: Mark Olbert | last post by:
I'm writing a custom MembershipProvider which uses a custom class derived from MembershipUser (basically, the derived class adds a field to the MembershipUser base class). When I try to configure...
9
by: Mark Olbert | last post by:
I'm reposting this in case it got lost... The ASPNET Configuration tool does not appear to be able to handle derived MembershipUser classes. Even the simplest possible derived class (one which...
0
by: mark d. | last post by:
I've been working through the new features in 2.0 for about a month now, am at the point of trying to apply them to my e-comerce applications. My apps assign a unique custid field in tracking the...
3
by: Linn | last post by:
Hi, I am trying to update the e-mail for å user (as an admin), but the new e-mail address is not saved. The msgbox gives met he correct email, but when I reload my data in the gridview, the old...
1
by: Smokey Grindle | last post by:
Im trying to write a custom membership provider but in the GetUser method it returns a MembershipUser, but when i create an object called that it says overload resolution failed... no accessable...
2
by: Cliff | last post by:
Hi, i try to get the emailaddress of an membershipuser: Dim a As MembershipUser Dim em As String em = a.Email.ToString In runtime, i get the error: "Object reference not set to an...
3
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm trying to extend the MembershipUser class, and have encounter a problem: << See in the middle of this post for info about why I do this >> << See below of this post for...
0
by: =?Utf-8?B?TmVhbA==?= | last post by:
I have developed a simple membershipuser class and membershipprovider class. I basically followed the procedures referenced at http://msdn.microsoft.com/en-us/library/44w5aswa.aspx and made it even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.