Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 12th, 2009, 12:22 AM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default allow duplicate names in an asp.net membership database?

Hi
I want to allow duplicate names on certain conditions(that I can check for myself).
such as
if 3 users come up to my site and have this
Code:
 
 
prefix: "jim"
userName: "chobo2"
    
prefix: "bob"
userName: "chobo2"
    
 

prefix: null
 userName: "chobo2"
 
Now if someone comes in and tries to register
 
 prefix: null
 userName: "chobo2"
    
or
    
 prefix: "bob"
 username: "chobo2"
It should come up with a duplicate error message. If they use a new prefix with "chobo2" then it should allow them.
So I need to figure out how to turn of duplicates first. I am not sure how do this in asp.net membership. If they put something on the database tables or something or if it is built instead the Membership.Create() method.
I know I could join the prefix + userName together but I don't want to do that I want to keep them seperate.


I been looking into asp.net membership applications. but I would need to some how to stream line it. Like I don't want to have to make a new provider each time. I would want them all to be under the same application name but with maybe different id's that I could somehow add users to if they added the same prefix too.

P.S

this html editor does not seem to work in firefox 3.5 had to come and write this in IE8





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Asp.net Membership chobo2 ASP.NET 3.5 Basics 3 April 2nd, 2009 04:02 PM
ASP.NET Membership and ActiveDirectory Quick209 ASP.NET 2.0 Professional 0 June 13th, 2007 12:41 PM
Help with ASP.NET Membership VerbatimBOT SQL Server 2000 6 May 2nd, 2007 01:58 PM
Duplicate Element Names carolynk XML 1 September 30th, 2004 09:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.