locked
Implement delete / deactive of membership RRS feed

  • Question

  • User-952752686 posted
    Anyone implemented delete and deactive membership?

    As for deleting, it seems need to delete the memberinfo table records and call the stored procedure [dbo].aspnet_Users_DeleteUser, which need some strange parameters....

    How about deactive?
    Thursday, July 6, 2006 2:30 AM

All replies

  • User380413204 posted

    Hi,

    I am not sure if it answers all your questions, but MaineOne has some nice goodies in this department.

    http://aspsksolutions.com/aspsk/default.aspx

    You can also check his posts on this forum about CWS Web Admin 3.2

    Regards,

    Lex

    Thursday, July 6, 2006 3:43 AM
  • User-952752686 posted
    thanks, I want to implement the logic in my application. So I am trying to figure out the right complete logic to do it....
    Thursday, July 6, 2006 10:06 AM
  • User2069888697 posted

    You can call the Delete user procedure by using

    membership.DeleteUser("UserName")

    The Membership Provider will feed it the parameters.

    DeActivate is simple just create a procedure to set Is Approved to 0. You can also use a gridview and sqldatasource to list your UserNames and IsApproved columns, then enable Edit mode on the grid view and change the approval that way.

    Hope this helps.

    Thursday, July 6, 2006 10:56 PM