View Single Post
Old October 3rd, 2007, 12:29 PM
dcct84 dcct84 is offline
Authorized User
Join Date: Sep 2007
Location: Quito, Pichincha, Ecuador.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Membership.UpdateUser()

Hi everybody,
I am trying to update users data using the UpdateUser method into ASPNET.MDF(the default database that is created when createuserwizard control is used). The problem is when I try to update the user username, I get this error:
'System.Web.Security.MembershipUser' does not contain a definition for 'Username'. Is it impossible to change username or other information when a user is already created? Any help or comment would be great!!!
I already tried changing email did it right
        :) what is wrong with username?

Here is the code I put in the update button onclick event:

user.Username = ((TextBox)this.Master.FindControl("ContentPlaceHol der1").FindControl("txt1")).Text;