Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Unable to delete members

$
0
0

I've made a page where I want the site admin to be able to delete users. There is a textbox for the username and a button to delete that user. The code behind is this.

   Protected Sub btnDeleteUser_Click(sender As Object, e As EventArgs) Handles btnDeleteUser.Click

        'delete user and get result
        lblRizult.Text = Membership.DeleteUser(txtUserName.ToString.Trim, True).ToString


    End Sub

It just returns "false" and looking inside the users table nothing has changed

What am I missing?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>