User1489758560 posted
Hi,
I have asp.net multi line textbox and i wanted to allow only alphanumeric, comma and space. of any other character typer will have to show the error message. Tried the below code and not working. don't know what mistake am doing. could anyone please help
me in this
<asp:TextBox ID="txtCheck" runat="server" Columns="64" Rows="20"
TextMode="MultiLine" Wrap="true"></asp:TextBox>
<asp:RegularExpressionValidator ID="regexpCheck" runat="server" ControlToValidate="txtCheck" ForeColor ="red"
ValidationExpression="^[A-Za-z\\s,]*$" ErrorMessage="*Valid characters: Alphabets,Numbers and Special Characters (,)." />