Example textbox
Hi All, how can i add validate expression to only accept numeric and space in my textbox? Example as image above. I try this way ValidationExpression="[0-100′ ‘]{100,}" but not correct..
<asp:TextBox ID="txtCopied" runat="server" TextMode="MultiLine"
Height="200px" Width="617px" />
<asp:RegularExpressionValidator ID="rvDigits" runat="server"
ControlToValidate="txtCopied" ErrorMessage="Enter numbers only till 100
digit" ValidationGroup="valGroup" ForeColor="Red" ValidationExpression="
[0-100' ']{100,}" />
2
Answers
I tried using ServerValidate instead of RegularExpressionValidator and tried to mess around with it.