Solved

Removing Membership in an ASP.NET application

Posted on 2009-05-11
1
238 Views
Last Modified: 2013-11-07
I have an asp.net application that is not using the Membership in ASP.NET.  I am interested in adding/linking much of the code found the "classifieds starter kit" to this existing application.  Is there a simple way to strip out the membership components of this starter kit.  I am interesting in just passing a few user paramenters to the classifieds starter kit in order to allow them to post ads.
0
Comment
Question by:cannase
1 Comment
 
LVL 12

Accepted Solution

by:
Hairbrush earned 500 total points
ID: 24363624
If you do a "Find in Files" (Ctrl+Shift+F) and search for "Membership" and then "Roles" and then "Profiles" you'll see the sections of code that use the following classes:

System.Web.Security.Membership
System.Web.Security.Roles
System.Web.Profile

You'd need to strip out all the code that uses these classes.

Alternatively, as the membership classes are designed to be able to work with custom back-ends you could create your own custom membership provider.  The benefit would be you could leave the membership code in place in the classifieds starter kit.  Your custom membership provider would specify where the data about users is held and what queries need to be executed to bring back information about the users.

http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx
http://msdn.microsoft.com/en-us/library/44w5aswa.aspx
http://msdn.microsoft.com/en-us/library/6tc47t75.aspx

Either way, this won't be quick, and could be tricky.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question