473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Implementing our own providers

hello,
I want to implement my own provider in asp.net instead of the default
aspnetsqlmembershipprovider... i want to implement my provider in such
a way that i want it to get the data from my own schema instead of
creating and using the default set of aspnet db....could anyone tell me
how this can be done ??
bye

Jun 7 '06 #1
3 1140
The Membership system is maintained through 3 classes. A class that
inherits from the abstract MembershipProvider class, the MembershipUser
(or a class that inherits it) and the static Membership class
referenced. in Page.

The work to create your own Membership provider is to create a class
that inherits from MembershipProvider. At a minimum, you will need to
override ValidateUser and GetUser to use the login control. If you
plan on using any of the other controls you will need to implement
other methods like CreateUser, ChangePassword, etc...

Now you just change the <membership> config settings to use your
provider.

All of the providers supplied by MS are now open source, this site has
all the info you need for any of the providers.

http://msdn.microsoft.com/asp.net/downloads/providers/

Pradeep wrote:
hello,
I want to implement my own provider in asp.net instead of the default
aspnetsqlmembershipprovider... i want to implement my provider in such
a way that i want it to get the data from my own schema instead of
creating and using the default set of aspnet db....could anyone tell me
how this can be done ??
bye


Jun 7 '06 #2
Thanks for that info John,
But I want all the personalization information to be stored in a my own
set of tables instead of the default aspnet tables..Is there a way to
achieve this..?
Bye
john_teague wrote:
The Membership system is maintained through 3 classes. A class that
inherits from the abstract MembershipProvider class, the MembershipUser
(or a class that inherits it) and the static Membership class
referenced. in Page.

The work to create your own Membership provider is to create a class
that inherits from MembershipProvider. At a minimum, you will need to
override ValidateUser and GetUser to use the login control. If you
plan on using any of the other controls you will need to implement
other methods like CreateUser, ChangePassword, etc...

Now you just change the <membership> config settings to use your
provider.

All of the providers supplied by MS are now open source, this site has
all the info you need for any of the providers.

http://msdn.microsoft.com/asp.net/downloads/providers/

Pradeep wrote:
hello,
I want to implement my own provider in asp.net instead of the default
aspnetsqlmembershipprovider... i want to implement my provider in such
a way that i want it to get the data from my own schema instead of
creating and using the default set of aspnet db....could anyone tell me
how this can be done ??
bye


Jun 7 '06 #3
When you inherit from MembershipProvider, you are responsible for how
all of those methods work. Nothing will be implemented for you.

Pradeep wrote:
Thanks for that info John,
But I want all the personalization information to be stored in a my own
set of tables instead of the default aspnet tables..Is there a way to
achieve this..?
Bye
john_teague wrote:
The Membership system is maintained through 3 classes. A class that
inherits from the abstract MembershipProvider class, the MembershipUser
(or a class that inherits it) and the static Membership class
referenced. in Page.

The work to create your own Membership provider is to create a class
that inherits from MembershipProvider. At a minimum, you will need to
override ValidateUser and GetUser to use the login control. If you
plan on using any of the other controls you will need to implement
other methods like CreateUser, ChangePassword, etc...

Now you just change the <membership> config settings to use your
provider.

All of the providers supplied by MS are now open source, this site has
all the info you need for any of the providers.

http://msdn.microsoft.com/asp.net/downloads/providers/

Pradeep wrote:
hello,
I want to implement my own provider in asp.net instead of the default
aspnetsqlmembershipprovider... i want to implement my provider in such
a way that i want it to get the data from my own schema instead of
creating and using the default set of aspnet db....could anyone tell me
how this can be done ??
bye


Jun 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken North | last post by:
The driver and provider lists (below) have recently been updated and moved to a new web site (www.SQLSummit.com): ODBC drivers http://www.sqlsummit.com/ODBCVend.htm ..NET Providers...
3
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers ...
1
by: vaughn | last post by:
I would like to be able able to implement some Access capabilities into my C# project. Is that possible? One of the capabilities I would need in my project is the Import Text Wizard so I can...
2
by: J.MOUZAKIS | last post by:
Please help me to bring back the AspNetAccessProvider in VS2005. This provider was in the whidbey version (or beta 1). Although the idea of using SQLExpress is maybe the best, I have the problem of...
1
by: John | last post by:
Hi I have created custom membership/role/profile providers as per the web.config below. My questions are; 1. Have I defined them correctly? 2. How can I make the Login and Create User...
1
by: redefined.horizons | last post by:
I am working on a specialised database that is written in C#. I would like to create an ODBC driver that allows external programs to conenct to my database. Is is possible to support ODBC in a...
0
by: awrigley | last post by:
Hi An app that was chuntering away quite happily to itself had roles added to it. Just two: Admins and Subscribers. However, I seem to have mucked up when assigning the role provider in the...
1
by: Mike | last post by:
Hi: I have been trying to create a web application that provides suport for two membership/profile databases: one for private users and one for another set of users. These tw user have a...
3
by: Andy Fish | last post by:
Hi, I am trying to figure out how to use asp.net membership providers for my vs2005 web project. unfortunately the only walkthrough in MSDN uses the "Web Site Administration Tool" to configure...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.