473,698 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update email adress membershipuser

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).DataK eys(e.RowIndex) .Value
user = Membership.GetU ser(bruker)

user.Email = CType(CType(sen der,
GridView).Rows( e.RowIndex).Cel ls(4).Controls( 0), TextBox).Text
MsgBox(user.Ema il)
MsgBox(bruker)

Jun 6 '06 #1
3 2223
Don't you need to call an update method to save it?

Linn wrote:
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).DataK eys(e.RowIndex) .Value
user = Membership.GetU ser(bruker)

user.Email = CType(CType(sen der,
GridView).Rows( e.RowIndex).Cel ls(4).Controls( 0), TextBox).Text
MsgBox(user.Ema il)
MsgBox(bruker)

Jun 6 '06 #2
There is no update method on MembershipUser (nor save as on ProfileCommon)
"Ray Booysen" wrote:
Don't you need to call an update method to save it?

Linn wrote:
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).DataK eys(e.RowIndex) .Value
user = Membership.GetU ser(bruker)

user.Email = CType(CType(sen der,
GridView).Rows( e.RowIndex).Cel ls(4).Controls( 0), TextBox).Text
MsgBox(user.Ema il)
MsgBox(bruker)

Jun 6 '06 #3
Figured out...
Membership.Upda teUser(bruker)
Could be what you ment, Roy, I just did not get it :-)
Thanks anyway.

"Linn" wrote:
There is no update method on MembershipUser (nor save as on ProfileCommon)
"Ray Booysen" wrote:
Don't you need to call an update method to save it?

Linn wrote:
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).DataK eys(e.RowIndex) .Value
user = Membership.GetU ser(bruker)

user.Email = CType(CType(sen der,
GridView).Rows( e.RowIndex).Cel ls(4).Controls( 0), TextBox).Text
MsgBox(user.Ema il)
MsgBox(bruker)

Jun 7 '06 #4

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

Similar topics

13
9121
by: ~ Le Naja ~ | last post by:
Hello evrybody, First, I hope you will understand my English because I come from Belgium ! :-) Here is what I want to know if you have the kindess to help me ! :-) I use the code above to mail with outlook express ... x = Shell("C:\Program Files\Outlook Express\msimn.exe /mailurl:mailto:destinationAdress@name.be?subject=Hello&Body=mytext") But I don't find the way to put te adress of the sender, because if I don't put the adress of the...
5
12701
by: morphex | last post by:
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485, in data * Module smtplib, line 312, in send * Module socket, line 1, in sendall
8
5435
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 my website using the ASP.NET Configuration tool, and go to the Security page, I get the following error: Could not load type 'OMLMembershipUser' from assembly 'App_Code.olsckwwk, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Yet...
9
1798
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 merely wraps MembershipUser itself, duplicates its public constructor but adds no additional methods or properties) causes ASPNET Configuration to blow up. The error message indicates that ASPNET Configuration cannot load the derived Type from the...
0
1139
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 user throughout their visit. (ie, XYZ20001) I've found a couple of examples on how to customize the membershipprovider object: <a href="http://www.devx.com/asp/Article/29256/1954?pf=true">Writing A Custom Membership Provider for your ASP.NET...
3
1918
by: ibiza | last post by:
Hi all, I am currently developing in asp.net 2.0 and I was at first impressed with the numerous login and user controls they provided to ease the task of managing users. But I am starting to think it's an hassle for certain tasks...here's my problem : I have created some users and successfully log them with the supplied
1
1392
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 'new' accepts this number of arguments... even though my argument list matches up... Dim _user As New System.Web.Security.MembershipUser(Me.ApplicationName, _eUser.UserName, _eUser.UserName, _eUser.ExternalEmailAddress, String.Empty, String.Empty,...
2
1330
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 instance of an object. "
3
1890
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 the source code of Contact class >> public class Contact : MembershipUser
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.