473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How delete user using Membership feature

Using the membership/roles feature in ASP.NET 2.0.

What is the best, cleanest way to "delete" a user?

Thanks!
Jul 3 '07 #1
2 1824
Use the Membership.DeleteUser method, which is provided for this exact purpose.
http://msdn2.microsoft.com/en-us/library/5xxz7y3a.aspx
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"VB Programmer" wrote:
Using the membership/roles feature in ASP.NET 2.0.

What is the best, cleanest way to "delete" a user?

Thanks!
Jul 3 '07 #2
Thanks Peter.

For some reason I thought that it wasn't this straight forward. But, I
appreciate your response very much.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:83**********************************@microsof t.com...
Use the Membership.DeleteUser method, which is provided for this exact
purpose.
http://msdn2.microsoft.com/en-us/library/5xxz7y3a.aspx
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"VB Programmer" wrote:
>Using the membership/roles feature in ASP.NET 2.0.

What is the best, cleanest way to "delete" a user?

Thanks!

Jul 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Linder (KC7RAD) | last post by:
All, Is this a bug or a feature? If a user is locked, GetPassword() throws an exception. Here's my web.config entry for the provider... <membership> <providers> <remove...
1
by: Tarun Mistry | last post by:
Hi all, I am using the ASP.NET 2.0 security model to impliment user access control on my site. I have a few questions hopefully someone can answer: 1) From the encrypted ticket stored in the...
3
by: shapper | last post by:
Hello, I need to check if a user is authenticated. I tried everything I could think and find: If Membership.ValidateUser("shapper", "27lamps11") Then...
3
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
When using the Web Site Administration Tool, I get the following error when trying to delete a user in a web application I configured to use membership, roles, and profiles: "An error was...
3
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, we've got a strange problem here: We've created an ASP.NET 2.0 web application using Membership.ValidateUser() to manually authenticate users with our website. The problem is: If the...
1
by: mazdotnet | last post by:
Hi guys, I've just started using ASP.NET's membership feature and it all seems pretty good. However, I need to have additional fields such as Address, Postal Code, Country, State, City...etc......
4
by: Scott M. | last post by:
When profile data is stored in ASP .NET, where is the user data persisted? For how long is it persisted: is it session persisted or permanent (like a cookie)?
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello everyone, I'm using a provider(Custom Membership), which uses WCF services to validate the user. Also implement the method GetUser. In my aspx page of the website used a Login control,...
2
by: shapper | last post by:
Hello, I am trying to get an anonymous user using the following: MembershipUser user = System.Web.Security.Membership.GetUser(); However, user is null. On my Web.Config I have the following:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.