Update email adress membershipuser

G

Guest

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 value is displayed.

Anyone any idea?

Dim user As MembershipUser
Dim bruker as string
bruker = CType(sender, GridView).DataKeys(e.RowIndex).Value
user = Membership.GetUser(bruker)

user.Email = CType(CType(sender,
GridView).Rows(e.RowIndex).Cells(4).Controls(0), TextBox).Text
MsgBox(user.Email)
MsgBox(bruker)
 
G

Guest

Figured out...
Membership.UpdateUser(bruker)
Could be what you ment, Roy, I just did not get it :)
Thanks anyway.
 

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,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top