TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
r p
NA
343
0
Can't Update Email Id - MembershipUser
Jan 16 2009 7:18 AM
In my site I am trying allow the users to
update their Email Id
.
When user trys to update his email id it gives an error saying -
The E-mail supplied is invalid.
I am using the following code-
MembershipUser user;
user = Membership.GetUser(HttpContext.Current.User.Identity.Name);
user.Email=txtEmail.Text;
Membership.UpdateUser(user);
This error comes only when there is another user who uses the SAME EMAIL ID.
I am using email id as the user name at the time of registration, BUT I DON'T UPDATE
the login email Id (Username) in this code as you can see it clearly.
Any idea!
Reply
Answers (
1
)
Gridview-Store ProductID in a hidden field and Looping the gridview
How to get current path?