What are the valid characters for a user name when using the SQL provider for ASP.NET membership?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s any character except for commas (,). The only other restriction is your database encoding settings.
You can view the source for the
SqlMembershipProvider.CreateUsermethod, and theaspnet_Membership_CreateUserstored procedure in the database to verify.Edit, further evidence:
http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.updateuser.aspx