Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i am working on a client - server database application on asp.net for taking all the communication in an private organisation.
i want to know why usernames does not have any spaces and special character except underscore(_) in them??
Posted

It's purely a matter of choice. Many sites allow hyphen (-) and full stop (.) as part of userid, and email address is becoming more and more common, so some other characters are acceptable there. The main reason for not allowing spaces is that it makes it more difficult to parse the name out of a longer field if spaces are included. When designing your own system you have the freedom to accept any characters that you wish, although it is best to follow the generally accepted conventions that most users are familiar with.
 
Share this answer
 
Comments
RaviRanjanKr 31-Dec-11 10:14am    
My 5+
Richard MacCutchan 31-Dec-11 10:37am    
Thanks.
Sachin gulati 2-Jan-12 3:24am    
thank you :)
It depends on the application in question and the way they handle usernames, some allow spaces etc.
 
Share this answer
 
Comments
Sachin gulati 31-Dec-11 3:29am    
i am making database application so database can store username with space and special character...
but why most of the application and websites don't allow this?
Mehdi Gholam 31-Dec-11 4:10am    
It's a design descision.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900