Solved

Removing Membership in an ASP.NET application

Posted on 2009-05-11
1
239 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to just get time from a date 6 47
C# Service FileSystemwatcher isse 9 46
VB.net/VSTO Excel Add-in 2 14
Convert VB web project to C# 3 29
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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