• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Removing Membership in an ASP.NET application

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
cannase
Asked:
cannase
1 Solution
 
HairbrushCommented:
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now