473,403 Members | 2,071 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.

SqlMembershipProvider Model

Ron
Hi,

I want to create a new SqlMembershipProvider called SqlMembershipProviderEx

I will use it to create two User objects which only need a UserName and
Password.
ServiceProviders and Customers all other in formation is stored as profiles
for each object.

There is a constructor under the Membership.CreateUser() which take two
string values: UserName, Password

How can i create something similar to this but using the
Membership.CreateUser() method
that is a Provider model so i can just plug it into my web.config file.

class SqlMembershipProviderEx : SqlMembershipProvider
{

public override MembershipUser CreateUser(string username, string password)
{
if (username.ToLower() == password.ToLower())
{
status = MembershipCreateStatus.InvalidPassword;
return null;
}
else
{
return base.CreateUser(username, password);
}
}

}

Thanks

Ron
May 19 '06 #1
0 1317

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

Similar topics

1
by: ibiza | last post by:
Hi, what would be the simplest way to add a functionality so it is possible to change the username in an asp.net 2.0 webapplication that uses SqlMembershipProvider? By default, this providers...
3
by: anon2005 | last post by:
I'm writing an installed for my application that uses a SqlMembershipProvider. I'd like to have the installer automatically set up the required roles and users for the application, but I can't...
2
by: daz_oldham | last post by:
Hi All Bit of an odd one - very basically I created an app using the SqlMembershipProvider in VS.NET 2005, and I did it on a MS SQL 2005 server. However, I then find out that for other...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
3
by: Ryan | last post by:
Hello, I have a question on the default: AspNetSqlProvider. I know that, by default, this looks for a database created locally in the appdata directory. Although I have learned how to change...
0
by: mazdotnet | last post by:
Hi, I just started using the new asp.net sqlMembershipProvider (users and roles) which works great. However, I'm testing my application on Windows XP and I'm getting different list of roles...
1
by: glebovech | last post by:
Is it possible to reuse existing SQLSERVER database containing membership information for different application? Basically this is a situation. 1. Created application App1 where with a help of...
1
by: Matt MacDonald | last post by:
Hi all, I've been debating for a while (basically since asp.net 2.0 came out) on using the built in mebership classes to handle user management in my web apps. I seem to keep coming upon...
3
by: Jeff | last post by:
hi asp.net 2.0 sql server 2005 I've created a database on my win2k3 machine. Now I'm moving this database over to my Vista business 32bit machine. (I scripted the database on the win2k3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.