Click here to Skip to main content
15,885,026 members
Everything / Membership

Membership

membership

Great Reads

by adriancs
Integrate Google OAuth 2.0 with ASP.NET in C# for seamless user authentication
by ASP.NET Community
"ASP.NET Membership builds on the success of the Forms authentication model from ASP.NET 1.x. ASP.NET Forms authentication provides a convenient way
by ASP.NET Community
Here are a few good tutorial articles that provide a good conceptual overview of how the new membership and role management system works. Check out
by ASP.NET Community
If you use the asp.net membership providers, having visual studio keep this sql database file around for deployment can sometimes be convenient.

Latest Articles

by adriancs
Integrate Google OAuth 2.0 with ASP.NET in C# for seamless user authentication
by Sajid Qayyum
Describes authentication management using cookies
by ASP.NET Community
When working with an ASP.NET site that requires some sort of user authentication (almost every time, I'd say), we often need to establish our own
by ASP.NET Community
If you use the asp.net membership providers, having visual studio keep this sql database file around for deployment can sometimes be convenient.

All Articles

Sort by Score

Membership 

18 Jan 2024 by adriancs
Integrate Google OAuth 2.0 with ASP.NET in C# for seamless user authentication
11 Oct 2013 by ASP.NET Community
"ASP.NET Membership builds on the success of the Forms authentication model from ASP.NET 1.x. ASP.NET Forms authentication provides a convenient way
24 Dec 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Add a request at Site Bugs and Suggestions[^].
2 Apr 2014 by Krunal Rohit
Go here[^] and there you will find one field named as Password, and near to that there's a link is given to changed the password. Hover on it, you will get the pop up to change it.-KR
14 Sep 2014 by Sergey Alexandrovich Kryukov
Here is the universal manual for you on this and many other topics:Pass the beginner phase and look for the manual for non-beginner. Please understand: people are not interested to write everything for beginners; it would be just a waste of time of for both sides.These "beginner"...
2 Nov 2014 by Manas Bhardwaj
Website Administrator Tool was technically removed because VS 2013 no longer uses the Cassini web server. Please see:http://forums.asp.net/t/1940600.aspxBut you can access it as before based on this...
23 Oct 2018 by CPallini
That's because the consumer and producer threads outlive the main thread (your program terminates immediately after thread creation). Try, for instance: #include #include class produceconsume { public: produceconsume(){} virtual ~produceconsume(){} ...
28 Jun 2012 by Jeeva G
Add following code in your webconfig file
6 Aug 2012 by Raje_
These links might help you:Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]Implementing a Membership Provider[^]Gook luck.
25 Sep 2012 by OriginalGriff
Post a request here: http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^] - the admins read all messages there and will cancel it for you.
22 Dec 2012 by Abhishek Pant
http://stackoverflow.com/quest...
8 Mar 2013 by Muzaffar Ali Rana
Actually the problem was in the ASP.NET Membership applicationName setting, since the project was configured twice for two different application names with names as "/" and "/PROJECTNAME". I have just set the Application Name appropriately.For reference please refer to the following article...
11 May 2013 by Konstantin Tarkus
Web Application Starter Kit for .NET DevelopersHere is a sample project which implements custom membership solution on top of the ASP.NET MVC, Entity Framework, custom database schema, external login / signup functionality, email service and...
24 Oct 2013 by Prasad Khandekar
Hello Abdhullah,Please have a look at this MSDN documentation[^] which shows a custom implementation of WebAuthenticationFailureAuditEvent class. The MemberShip provider fires an AuditMembershipAuthenticationFailure Web event when user login fails. The NameToAuthenticate property returns...
2 Apr 2014 by Abhinav S
Mouse hover over your id at the top right corner.Then go to settings.You will see "Password" with a Change URL option next to it.
21 Mar 2015 by Afzaal Ahmad Zeeshan
You should try wrapping the name between [] and then trying it again. Such as, [ApplicationName] and then try. If doesn't work, please change the column's name inside your database table and try something else.
19 Jan 2016 by Vaidhya.P
There are so many tables in the Sqlmembershipsecurity , but only aspnet_UsersInRoles,Aspnet_Roles,Aspnet_User is used and only they are populated.How to user the remaining tables(aspnet_Profile,aspnet_Membership etc.. in the SQLMembershipSecurity:Requirment: To manage roles of the...
21 Jan 2016 by Afzaal Ahmad Zeeshan
Despite the fact that Sergey brings up in his comment to your question, the task is still very tough to be performed for an actively used application. I would assume that you meant to say, "SHA1" hashing algorithm. Encrypting using SHA1 would be as if you only want encrypt, and not decrypt....
29 Nov 2017 by ZurdoDev
Quote: a new table database for every new academic year that will start but apparently, it's too complex. No, you would just store the year as a filed within a table. Quote: The user will be asked to input their Student number name, contact details, and other basic information and also what...
10 Jan 2019 by OriginalGriff
The only way to contact a member privately is to use the "Email" facit]lity on any forum message. So if he has replied to any message at the bottom of the article, then looking at his message may show "Reply·Email·View Thread | Edit·Delete" and clicking on "Email" will give you a new page to...
24 Jan 2022 by Luc Pattyn
You should post here: Bugs and Suggestions[^] That is the only forum the admins are bound to read and act upon. :)
4 Mar 2012 by Pankaj Nikam
I am trying to build a website where a group of people will join. They will have their own profile and other related things. I want to implement custom membership and profile providers to them in such a way that one member can search and view profile of each other based on the records entered by...
12 Mar 2012 by botskie
Try this site dude for your custom membership provider; this also includes custom role provider.http://www.brianlegg.com/post/2011/05/09/Implementing-your-own-RoleProvider-and-MembershipProvider-in-MVC-3.aspx[^]
20 Jun 2012 by usernametakenalready
HiIs there any ASP.NET Membership file Template available ?if it is not available how to write Custom Membership file from the Scratch... ?Thanks in Adv.
27 Jun 2012 by Member 3491662
Hello,I have been searching and searching for a solution when it comes to programmatically creating users to the membership database, but nothing so far has worked for what I need.I hope someone here can help me out or at least guide me in the right direction.In a few sentences I...
6 Aug 2012 by Member 9326644
Hello everyone I want to implement custom membership using SQL database.I searched alot but couldn't find any good tutorial .can anybody help to take a good start ?Thanks in advance.
7 Aug 2012 by Member 9324904
I am implementing custom membership user. In which i want to do add my column to store additional information of a user into the membership table. I want to add my own columns into the membership columnsAny one plz help Thanks
7 Aug 2012 by Christian Amado
You can Add your column in database (e.g. aspnet_users table), modify stored procedures that affects to your modified table. That's all from DB.Now in your aspnet project, Add a new class that extends from Membership or MembershipUser depends on your requirements. Add the property (column of...
25 Sep 2012 by JF2015
There is no setting. For deleting your account you should post your request to this forum:http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx?fid=1645&fr=51#xx0xx[^]
25 Sep 2012 by Sandeep Mewara
If you want to get your account deleted, please post a request here: CP Bugs & Suggestions[^]. Admins will look into it and do the needful.
23 Nov 2012 by cass3000
I have a custom MembershipProvider based on this example[^] from msdn.I defined the minRequiredPasswordLength and minRequiredNonAlphanumericCharacters in my web.config like this: ...
23 Nov 2012 by cass3000
I found the solution here[^].
8 Apr 2013 by Sergey Alexandrovich Kryukov
First of all, get rid of such an unsafe schema where you can encrypt a password. In any decent authentication model, a password cannot be "decrypted"; this is never needed.Surprised? Please see my past answers for further detail:storing password value int sql server with secure...
8 Apr 2013 by CHill60
If you have used any of the "standard" tools for encryption then they are specifically designed to prevent decryption - you would be better off offering a replace-password option with (encrypted) security questions to validate.Have a look at the discussions here...
14 Apr 2013 by Ahmad Abd-Elghany
is there any full tutorials to work with asp.net member ship and sql membership but with custom pages not wizards ?
14 Apr 2013 by Sandeep Mewara
Sounds like you are looking for this: How to: Implement a Custom Membership User[^]
15 Apr 2013 by babu saravanan
ASP.NET Membershipcreating-the-membership-schema-in-sql-server-csASP.NET Membership
20 Apr 2013 by Ahmad Abd-Elghany
How can I programmatically validate the current password then change it with the new password in membership ?and how can i reset the password when forgotten and send email with the reset link ?
20 Apr 2013 by vijay__p
Use ChangePassword Method from MembershipUser class.var user = Membership.GetUser("user name");user.ChangePassword("old Password","New Password");http://msdn.microsoft.com/en-IN/library/system.web.security.membershipuser.changepassword.aspx[^]
19 May 2013 by Seshu The Baadshah
ASP.Net Membership: Determine whether the login failed is due to invalid username or password Locked our status in the following event.protected void Login1_LoggedIn(object sender, EventArgs e){}[Edit]Code block added[/Edit]
19 May 2013 by vijay__p
Get object of MembershipUser and check IsLockedOut PropertyMembershipUser.IsLockedOut http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.islockedout.aspx[^]
10 Jul 2013 by harrydinho
Hi,I have a web application with a SQL DB project linked to a database and have generated the .Net Membership DB using aspnet_regsql.I then have a number of tables that I want to have foreign keys referencing some of the generated tables but I get errors because VS can't see that the...
17 Jul 2013 by Mobile.Instinct
Hello,I am a beginner at asp.net and web development and recently I have started working on user accounts and login. That all works well, a user can login and logout etc. My next task was to upload files on the server/database, which I was successfully able to achieve. So, now I can upload...
21 Jul 2013 by Dovlet Mamenov
I have created an ASP.net MVC4 application with Internet application template, and want to add List property to MembershipUser object provided by ASP.net builtin Authetication.This List property will be a list of StockPermission object:public class StockPermission { ...
24 Jul 2013 by Jiban jyoti Rana
I have used ASP.NET Website Configuration To my application. It works in my Local Server fine but When i publish to the hosting server it shows error while login and login fails with an error.The error is "Server Error in '/' Application."Please help me out what to do.
24 Jul 2013 by OriginalGriff
The error message is pretty specific - it gives you the instructions you need to follow to find out what the problem is. Look at the "details" section of the error message, and follow the instructions. Then run your site again, and you should see the "proper" error message and a line of code...
28 Jul 2013 by Dovlet Mamenov
To add List property to our MembershipUser object or any other properties we can create custom MembershipProvider and custom MembershipUser classes describer in this article:http://msdn.microsoft.com/en-us/library/ms366730(v=vs.100).aspx[^]
30 Jul 2013 by Ahmad Abd-Elghany
Reference System.Web
5 Sep 2013 by SadeqHatami
hi to all,i use asp membership,now i want create a page for user for change password,but i don't want to use i want create this custom,my problem is: i want check user oldpassword from oldpassword textbox ,if currect, password change, and display "success" message,...
6 Sep 2013 by ZainNabi
I have a view Register and the webpages_UserProfile table that stores the data after a user signs up. The user will then be redirected to another view RegisterQue. A foreign key relationship exists between Que and UserProfile. Incase time is against a user he or she can then use a view login....
13 Sep 2013 by M.Saied
this is series of lessons help you to admin you membership form your app [Here]
7 Oct 2013 by Carlos Baena
Problem solved for my scenario.I ended up using the code exactly as I mentioned originally. But in order to make it work, I needed to create a group of tables as mentioned in http://msdn.microsoft.com/en-us/library/bb384312.aspx.Then instead of using the aspnet membership database, I use...
11 Oct 2013 by ASP.NET Community
Here are a few good tutorial articles that provide a good conceptual overview of how the new membership and role management system works. Check out
11 Oct 2013 by ASP.NET Community
If you use the asp.net membership providers, having visual studio keep this sql database file around for deployment can sometimes be convenient.
11 Oct 2013 by ASP.NET Community
When working with an ASP.NET site that requires some sort of user authentication (almost every time, I'd say), we often need to establish our own
13 Oct 2013 by serhat koroglu
I'd like configure asp.net's template membership provider and I want to use it with unique email address instead of username. I don't need username section. How can I do this?
23 Oct 2013 by Abdullah Al-Muzahid
I want to send an email whenever the user is locked out. I am using ASP.NET Membership framework. Is there any way to determine or handle any event when a user Locked Out
24 Oct 2013 by Vinodh.B
Hi Thi link may help you http://www.asp.net/web-forms/tutorials/security/admin/unlocking-and-approving-user-accounts-cs[^]Solution 2You may write a window service which checks up the users at a regular interval and send mail to the locked user
24 Oct 2013 by Michael Grove Annesley
Have you seen this article: [here]
13 Nov 2013 by SadeqHatami
hello to all,i want show textbox to user for receive QuestionAnswer and validate this with DataBase QuestionAnswerActually i use asp.net membership and i want when user IsLockedOut equal True,show PasswordQuestion and if user Enter correct QuestionAnswer IsLockedOut equal to...
17 Nov 2013 by Maciej Los
Walkthrough: Using Forms Authentication in ASP.NET MVC[^]It should be enough for start ;)
17 Nov 2013 by Sampath Lokuge
For MVC 4Forms Authentication in ASP.NET MVC 4For MVC 5Authentication in ASP.NET MVC with SimpleMembership and OAuthI hope this will help to you.
22 Nov 2013 by MTProgrammer
Use an existing method to accomplish this.http://www.asp.net/web-forms/tutorials/security/admin/recovering-and-changing-passwords-cs[^]
9 Dec 2013 by WaleedMuh
Dear All,I'm facing a wired problem when using asp.net 4.5 membership to manage forms authentication for my users.The first page i request after login works fine, but when i try to move to another page or even refresh the current page, i get redirected to login page, even though forms...
5 Jan 2014 by Member 10505083
How do I contact another member?
5 Jan 2014 by Andreas Gieriet
If a CP member accepts direct contact, he will have posted some contact information in his CP profile.Otherwise, the CP member does not wish to be contacted directly.If there is a related post for your question, reply on that post.CheersAndi
5 Jan 2014 by Ron Beyer
If they have posted a general forum message, and they enabled it, at the bottom of the message there is an option to "email". If you click this it takes you to a place you can enter a message that will be emailed to the member and not show up in the forums.
6 Jan 2014 by srinathThanuku
Hi All,I am very new to developing an internet application using ASP.NET MVC4. I would like to use SimpleMembership for authentication and authorization in our application. Now I want to allow the Admin to define the roles from front end. and also assign those roles to the users while...
6 Jan 2014 by Jaden Parker
To create a new role in ASP.NET MVC,maybe you can try this code :@{ ViewBag.Title = "RoleCreate"; Layout = "~/Views/Shared/_LayoutAdmin.cshtml";}   @Html.ActionLink("Roles", "RoleIndex") | @Html.ActionLink("Add Role to User",...
6 Jan 2014 by JoCodes
Refer Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]Hope this helps you...
7 Jan 2014 by kenexcelon
Hey guys, I setup the standard ASP .NET membership provider in an application. However, the issue referenced in the question above has happened a few times. I'm not sure why it continues to happen. It happens upon first load of the application as I'm using the function that grabs all users...
16 Jan 2014 by v03051435
hi guys, i have a asp.net web site app, use of membership for the authentication, but i have a problem that:1. when i login,2.and close my web site,3.type one page URL (which needed to log in and can be visited)but i can directly reach this page without login this time(after i closed the...
16 Jan 2014 by Deviprasad Das
You need to rely on cookie for achieving this.
16 Jan 2014 by ♥…ЯҠ…♥
Hi,I think you need to clear the session at browser exit.You can refer this[^] link and this [^].Hope this helps you a bit.Regards,RK
16 Jan 2014 by kashmir11
Use Cookies to save User name and password to browser Protected Sub Login_Click(ByVal sender As Object, ByVal e As EventArgs) If chkRememberMe.Checked Then Response.Cookies("UserName").Expires = DateTime.Now.AddDays(30) Response.Cookies("Password").Expires =...
16 Jan 2014 by v03051435
found that, just in login page, useFormsAuthentication.SetAuthCookie(Login, false); // previously, i set true...now worked!Response.Redirect("~/WelcomPage.aspx",false);
21 Jan 2014 by Member 3530203
Hi, Currently my application is using SHA1 algoritham for password in membership provider.Framework I am using in 3.5SP1.This application is in production.Now we are working on some change requests and one of the request from client is to upgrade hashing algoritham from SHA1 to SHA3.So can...
11 Feb 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer - 7 things to check to resolve “A network-related or instance-specific error occurred while establishing a connection to SQL Server…” [^].
24 Feb 2014 by Maciej Los
Here is a proper board to ask above question: Site Bugs Suggestions[^]
2 Apr 2014 by Member 3123559
Where do I go - to change my CodeProject.com Password ?I just received a temporary password - which (obviously) worked great !!But after logging off, & lateer returning - is this new "temporary password" my actual password to use from now on ?(translation : WHERE can I go - to...
14 Apr 2014 by Sampath Lokuge
As an another option, you can use Windows Azure to build Single Sign-On apps.Please read below article to know about that. Single Sign-On (Building Real-World Cloud Apps with Windows Azure)Another useful link : How to Implement Single Sign On in MVC4 Good Luck ! :)
18 Apr 2014 by Sergey Alexandrovich Kryukov
Imaging you have a problem to create bonfire. You question is like asking: "Do you have a manual on striking a match?".—SA
6 Jun 2014 by Peter Leow
This is your first question, yet it is about deletion of account. Sad! It is not advisable to withdraw, stay a bit longer and explore CP, browser the articles, check out the quick answers forum. You will love it. However, if you insist, reluctantly refer: CodeProject Member FAQ[^]
6 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Peter is correct. If you still want to remove your account, then post at Bugs and Suggestions[^].
10 Jul 2014 by Peter Leow
Did you forget to check the checkbox for the "I have read and agree to the Privacy Policy and Terms of Service for this site" statement? If the problem persists, you should post your question => http://www.codeproject.com/suggestions.aspx[^]
4 Aug 2014 by Member 8397864
I am having a database with ASP.NET membership tables, stored procedure and values in it.Now i am creating a new application in MVC5 with default login page. How can i use those tables in that old DB for login?I do not want to use ASP.NET Webpages tables for login functionality which...
20 Oct 2014 by OriginalGriff
We do not condone, support or assist in the production of malicious code in any way, form or manner. This is a professional site for professional developers. And decrypting database passwords is almost certainly malicious: ask the owner / originator of the password what it is. You do have...
21 Oct 2014 by Muhammad Taqi Hassan Bukhari
I have a project to understand and modified. in this the developer is using asp.net membership provider for user registration purposes. I need to know which password encryption technique is using in this project.My web.config file is this.
1 Nov 2014 by Muhammad Taqi Hassan Bukhari
I am working on Asp.net Website that runs on .Net 4.5 and following the asp.net tutorials from msdn. When I paste any login control and click administer website, following error arises---------------------------Microsoft Visual Studio---------------------------Error invoking...
4 Nov 2014 by sujithkumarsl
I am new to ASPNET Identity 2.0. I would like to know the way to customize Identity 2.0 to work with two databases. One db for authentication (like and IDP but I can query this db). Another one for authorization (role table). Any help?He the authentication table is the centralized Identity...
9 Nov 2014 by Suraj Sahoo | Coding Passion
DotNet tricks[^]Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]A Beginner's Tutorial on Custom Forms Authentication in ASP.NET MVC Application[^]The above links are some very good links/articles on Authentication and authorization.These would...
12 Nov 2014 by Seyed Ahmad Mirzaee
Hi alli want to use membership in asp.netwhen i open Asp.net Configuration Page i encounter with below errorAs a security measure, the Web Site Administration Tool times out after a period of inactivity. Changes to machine.config or web.config may also result in the tool needing to be...
8 Dec 2014 by sris 426
Hi,I am staring a new project in MVC4. Can I use asp.net membership provider for my authentication/authorization purpose. There are very few roles in application(max 5 roles). But there are premium and paid customers. we need to distinguish these users. Please suggest.Can I use a part of...
8 Dec 2014 by Suraj Sahoo | Coding Passion
I think that can always be used.But MVC provides attributes like Authorize for providing authorization based on roles.And considering Authentication both forms and windows can be used for sure.But in MVC you can create Custom Authorize attributes. Check the links below:-Custom Forms...
27 Dec 2014 by sulekhabanerjee
Hi,I have used membership and roles in asp.net application.Step 1:- Created users and password through code in my database name "aspnetdb".Step 2:- The forms authentication tag and membership tag is available in my web.config file.I have used the hashed format settings for password in...
27 Dec 2014 by .Net Jim
Give this a try for some direction.[^]
27 Dec 2014 by Thebusker
Hello to all,my Hosting Provider don't allow to use the default user called "dbo" (on mssql 2008 server).I'm using the standard Membership in Visual Studio Express 2012 (or VS2010) for Registration and Login pages, but the Entity Framework/Membership .dll creates tables and vistas by "dbo"...
8 Jan 2015 by RAHUL(10217975)
I am creating web application using .Net framework 3.5, I implemented asp.net membership (Forms Authentication), Now, What i want is when user session state is inactive then redirect page to Lockscreen.aspx and then user will enter details and continue work. After lot of search I have got...
8 Jan 2015 by DamithSL
you need to reset the timer on every postback, check below article : Session Time Out Warning Message Using jQuery in ASP.NET[^]