teardropzerone
New Member
Help! I set up my database in microsoft sql server 2005.<br />
I have this table named Customers<br />
Now i have this field Username<br />
then from modify tables I right click row Username<br />
and select Indexes/keys<br />
then I select add. select columns and select the field Username<br />
and change the Is Unique to Yes and Type to Unique KEy<br />
<br />
My Problem is in registration form of my website this message appears every time I enter username that is already existing in the database. Help me How will I fix it. I just need to know the codes in c# so that the if I enter the existing username it will not be accepted and there will be a message error that the username is already taken. Just like in signing up in yahoo. please help me.. Im using C#, microsoft web developer 2005 and microsoft sql server 2005 <br />
<br />
I have this table named Customers<br />
Now i have this field Username<br />
then from modify tables I right click row Username<br />
and select Indexes/keys<br />
then I select add. select columns and select the field Username<br />
and change the Is Unique to Yes and Type to Unique KEy<br />
<br />
My Problem is in registration form of my website this message appears every time I enter username that is already existing in the database. Help me How will I fix it. I just need to know the codes in c# so that the if I enter the existing username it will not be accepted and there will be a message error that the username is already taken. Just like in signing up in yahoo. please help me.. Im using C#, microsoft web developer 2005 and microsoft sql server 2005 <br />
<br />