Click here to Skip to main content
       

C#

 
AnswerRe: Dynamic Reference to Dll Path Pinmemberjschell29-Jan-13 13:50 
Question.NET Brush serialization/WYSIWIG [Solved] [modified] PinmemberAmlanjyoti Saikia29-Jan-13 0:32 
AnswerRe: .NET Brush serialization/WYSIWIG PinmemberBrisingr Aerowing29-Jan-13 3:12 
GeneralRe: .NET Brush serialization/WYSIWIG PinmemberAmlanjyoti Saikia30-Jan-13 1:54 
Questionhow to check the avaialbility of username from database PinmemberSanthosh V.T28-Jan-13 20:51 
AnswerRe: how to check the avaialbility of username from database PinmvpOriginalGriff28-Jan-13 21:17 
AnswerRe: how to check the avaialbility of username from database PinmemberPIEBALDconsult29-Jan-13 3:59 
AnswerRe: how to check the avaialbility of username from database PinmvpMarcus Kramer29-Jan-13 5:11 
Don't get so hung up on "3 tier" and stuff like that.
You have a very specific problem you are trying to solve so just focus on that alone.
What you need to do is run a query against your database to check if a value exists. That's it.
public bool UserNameExists( string username )
{
   // Connect to your database...

   // Run a query to check if username exists. 
   // NOTE: Use a paramatarized query.
   // Something like: SELECT count(*) FROM [YourUserTable] WHERE [YourUserNameColumn] = @username
}
I wasn't, now I am, then I won't be anymore.

QuestionLearning C# .Net - From where to start.? Pinmembermbatra3128-Jan-13 19:21 
AnswerRe: Learning C# .Net - From where to start.? PinmvpOriginalGriff28-Jan-13 21:23 
AnswerRe: Learning C# .Net - From where to start.? PinmvpRichard MacCutchan28-Jan-13 22:53 
AnswerRe: Learning C# .Net - From where to start.? PinmvpAbhinav S29-Jan-13 19:02 
QuestionSocket programming PinmemberNaina Dhande28-Jan-13 19:04 
AnswerRe: Socket programming PinmvpRichard MacCutchan28-Jan-13 22:51 
AnswerRe: Socket programming Pinmemberpt140129-Jan-13 10:35 
QuestionDisplay an array elements in 2 columns using the console PinmemberTheGermoz28-Jan-13 9:53 
AnswerRe: Display an array elements in 2 columns using the console PinmemberRichard Deeming28-Jan-13 10:09 
GeneralRe: Display an array elements in 2 columns using the console PinmemberTheGermoz28-Jan-13 11:47 
QuestionDoes backgroundWorker make code slower? PinmemberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? PinmemberPIEBALDconsult28-Jan-13 16:02 
GeneralRe: Does backgroundWorker make code slower? PinmemberMichCl29-Jan-13 2:18 
GeneralRe: Does backgroundWorker make code slower? PinmemberPIEBALDconsult29-Jan-13 3:16 
QuestionDoes backgroundWorker make code slower? PinmemberMichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? PinprotectorPete O'Hanlon28-Jan-13 9:51 
GeneralRe: Does backgroundWorker make code slower? PinmemberMichCl29-Jan-13 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 19 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid