Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

User name in membership in other language?

$
0
0

I'm create a membership feature in asp.net. However, this website will be in other language in stead of English. In user name field, it has regular expression validator that doesn't allow other symbols in stead of english alpha beta. My question is that if I remove the validator, it should allow input other language, is this right? if so. The user name should consider as unique field? Thanks,

<asp:TextBox ID="UserName" Runat="server" Height="18px" Width="175px"></asp:TextBox><asp:RequiredFieldValidator ID="UserNameRequired" Runat="server" 
                                                        ControlToValidate="UserName" Display="Dynamic" 
                                                        ErrorMessage="user name required" ToolTip="user name required" 
                                                        ValidationGroup="CreateUserWizardControl"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="UserNameRequiredFormat" runat="server" 
                                                        ControlToValidate="UserName" Display="Dynamic" 
                                                        ErrorMessage="user name required,no other symbol, like > ?#." 
                                                        ToolTip="user name required" 
                                                        ValidationExpression="^[0-9a-zA-Z''-'\s]{1,40}$" 
                                                        ValidationGroup="CreateUserWizardControl"></asp:RegularExpressionValidator>


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>