i used the aspnetdb.mdf database provided by the personal webstarter kit,now when i wantto update the membership table to set a user as approvd i created a sqldatasource which returns all the values but still can't insert update and delete as that option is
not highlighed , ne reason u may kno of? ty in advance
You can use the Membership objects to approve a user, the sample code is VB.NET but could be converted to c# easily, the UserName is the user name they used to register with
Dim user As MembershipUser = System.Web.Security.Membership.GetUser(UserName)
user.IsApproved = True
System.Web.Security.Membership.UpdateUser(user)
Please mark the most helpful post(s) as Answer Blog | I need more space:DropBox Referral
elfstonesada...
0 Points
13 Posts
cannot modify membership table
Apr 04, 2009 05:01 AM|LINK
whighfield
Star
11721 Points
1859 Posts
Re: cannot modify membership table
Apr 04, 2009 06:15 PM|LINK
You can use the Membership objects to approve a user, the sample code is VB.NET but could be converted to c# easily, the UserName is the user name they used to register with
Blog | I need more space:DropBox Referral