Solved

Removing Membership in an ASP.NET application

Posted on 2009-05-11
1
235 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now