I am using RegularExpressionValidator
for FreeTextBox
control in my aspx
page.
<FTB:FreeTextBox id="FTB" runat="server" />
<asp:RegularExpressionValidator ID="rev" runat="server" ControlToValidate="FTB" ErrorMessage="Content cannot be only space character" ValidationExpression="[^\s]+"/>
I want to not allow the text to only have space characters. The client has to input some a,b,c…
character.
But the RegularExpressionValidator
denies any space character in the text (such as between 2 words).