473,399 Members | 2,478 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,399 software developers and data experts.

How do you change an email in the aspnetdb user the MembershipProvider?

I need to give a user the ability to change the email of any other user listed in the aspnetdb. I can easily change their password, but I can't get the email to change. I thought that usr.email = "email@email.com" would work, but it doesn't. It doesn't error, but it also doesn't change anything.

This is the basic code:
Expand|Select|Wrap|Line Numbers
  1.   Dim usr As MembershipUser = Membership.GetUser(userName)
  2.   usr.Email = txtEmail.Text
  3.  
Oct 14 '10 #1
1 2864
Frinavale
9,735 Expert Mod 8TB
Did you try calling the Membership.UpdateUser method after changing the password?

For example:
Expand|Select|Wrap|Line Numbers
  1. Dim usr As MembershipUser = Membership.GetUser(userName)
  2. usr.Email = txtEmail.Text
  3. Membership.UpdateUser(user)
-Frinny
Oct 15 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: George Chorny | last post by:
Hello, I'm sure may are familiar with the following error. Getting it while trying to change the password from w/in the db2 client? Running IBM DB 8.2 Fixpack8 SLES8/2.4 moving to SLES9/2.6.5 ...
1
by: jn148 | last post by:
I administer three IIS6 servers for a large company where the programmers are now requesting that we change the password for the local aspnet user account on the server to a known password (no...
0
by: tenko | last post by:
here's a question regarding changing units, say from g to kg without changing the entire codes.... my mathematical equation uses KG (kilograms), but the user can choose whether to enter values in...
5
by: Dan | last post by:
Hi, I use the <asp:CreateUserWizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress? Thanks...
1
by: jobs | last post by:
I'm using Membership security to manage a Retailer Site. We have a condition where we would like a set of users to be managed by a single email. Today if you attempt to add a new user and enter the...
0
by: vincent90152900 | last post by:
I like to Customize the layout of a CreateUserWizard component and I would like to chnge the “Create User” button to an ImageButton. How to do that? Following is my codes. ...
1
by: CodeMaster123 | last post by:
Is there any way to change the password which is assigned to user in MySQL
2
by: shapper | last post by:
Hello, I have a string that contains one or more email anchors as follows: 1. "this is a text <a title="Send Email" href="mailto:mail@mydomain.com">mail@mydomain</a>" Or something like (In...
1
by: athanazio | last post by:
I developing a ASP webpage where the users login, then, this page creates a ASP session variable that store's the user profile and the page redirects the user to a "welcome page". In this "welcome...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.