Hello!
As I put in the title I need a validator (regular expresion, customvalidator, etc) that allows the user to input everything (lettrs, special characters, spaces) but not numbers.
How can I do that?
Thank you,
Sabrina
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sabrina LanPosted Feb 16, 2015, 11:29 PM
Khargesh RajputPosted Feb 16, 2015, 11:24 PM
if yees then follow
http://www.aspsnippets.com/Articles/Implement-Password-Policy-using-Regular-Expressions-and-ASPNet-RegularExpression-Validator.aspx
or http://www.codingfusion.com/Post/Validate-strong-passwords-using-RegularExpressionV
Sabrina LanPosted Feb 16, 2015, 11:13 PM
I want a regex that allows all letters and all special characters incluiding space (this is done with ^[^0-9]+$ ) but now the thing that I can't get to work is that it doesn't allow the user to only enter spaces, the textbox has to have at least one letter or special character but not only the space.
Can you help me with this?
I'm really thankful
Khargesh RajputPosted Feb 16, 2015, 11:06 PM
refer below link
http://www.aspsnippets.com/Articles/Regular-Expression-Regex-to-accept-only-Alphabets-and-Space-in-TextBox-in-ASPNet.aspx
Sabrina LanPosted Feb 16, 2015, 10:49 PM
Khargesh RajputPosted Feb 16, 2015, 10:47 PM
<asp:TextBox id="txtbox" onkeypress="return isNumberKey(event)" runat="server"/>
Sabrina LanPosted Feb 16, 2015, 10:47 PM
Is there a way to also validate that it has no spaces on the begnin?
Thank you very much
Sabrina
Khargesh RajputPosted Feb 16, 2015, 10:43 PM