|
Subject:
|
Delete user from ASPNETDB.mdf
|
|
Posted By:
|
rsearing
|
Post Date:
|
1/7/2007 12:44:51 PM
|
I have customized the createuserwizard to include my own data. I have a Gridview that lists all users based upon my own DB. I have created a delete function to remove out of there---but, if I have a userName, is there code to remove a user from the ASPNETDB.MDF file?
Thanks, Rob
|
|
Reply By:
|
Imar
|
Reply Date:
|
1/7/2007 12:52:46 PM
|
You should take another look at the Membership API. It has many convenient methods to create, update and delete users, including DeleteUser:
Membership.DeleteUser(userName)
Imar --------------------------------------- Imar Spaanjaars http://Imar.Spaanjaars.Com Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004 While typing this post, I was listening to: Mic-check by Osdorp Posse (Track 1 from the album: Geendagsvlieg) What's This?
|
|
Reply By:
|
rsearing
|
Reply Date:
|
1/7/2007 4:38:06 PM
|
Sheesh...boink.....Thanks.
(blushes)
|