Author: some_yahoo | Posted on: 2/1/2010 5:12:31 PM | Views : 298

I have an ASP Table, and am adding rows to it with data from the MembershipUserCollection on the fly.


I have been able to create a Button to delete the user (I create this button in the tablecell with the user's name) and want to cause the button to do something like this.
Membership.DeleteUser(username);
HOWEVER
Contrary to everything I have seen on the internet, there seems to be no way to coneect the button to it's event handler.
     Button deletebutton=new Button();
        deletebutton.Text="delete";
        deletebutton.CommandArgument=username;
        
        deletebutton.Click = "DeleteUser";            //Error    1    The event 'System.Web.UI.WebControls.Button.Click ...

Go to the complete details ...