Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Membership does not contain a definition for delete User 1

Status
Not open for further replies.

seabaz2000

IS-IT--Management
Feb 24, 2006
79
IE
Hi,
I am trying to call a method of the Membership provider "Delete User". So I type in "Membership." and I get a drop down list of all the methods that I have available but when I select one of them and go to build the code, I get the error "Membership does not contain a definition for Delete User", even though it gave me the option to select it. I am trying to call the method from the code behind page of an aspx page.
Regards
 
If you are actually putting a space between "Delete" and "User" that would cause the error. This works for me:
Code:
   userDeleted = Membership.DeleteUser(LoginName, true);

userDeleted is a boolean variable.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top