User unregistration

Discussion in 'ASP' started by CaJack, May 15, 2007.

  1. CaJack

    CaJack New Member

    Mar 21, 2007
    Likes Received:
    Trophy Points:
    I’ve used the createUserWizard to allow users and I’m using the various other login controls around my site. The information goes to the default sql database aspnet.mdf and to the tables aspnet_Membership and aspnet_Users. I was wondering is there was a control or a easy way to unregister? I was thinking if there isn’t a control I could grap the username like this…
     UserName = Page.User.Identity.Name.ToString()
    Then query the tables for rows that match the username and delete the rows. But then how would I sign the user out once they have unregistered? Is there any code to sign a user out that I could put in a click event with the unregister stuff?

    A bit off topic now but hey. When I type something like…
    Private Sub Test()
    End Sub
    Is that called a sub routine? I’ve been using them a lot as it’s extremely useful. Any help would be great. Thanks.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice