User-1767698477 posted
I have a textbox field and I'd like to allow a / in the textbox. I have tried this both with and without a \ backslash character, and it's not working for me.
<td>
<asp:TextBox ID="Txtotherloantype" runat="server" Width="175"></asp:TextBox>
</td>
<td>
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator15" ControlToValidate="txtotherloantype"
ValidationExpression="^[a-zA-Z0-9'\/@&#.\s]{7,10}$" ErrorMessage="Invalid Characters"
Display="Dynamic" ForeColor="Red" Font-Bold="True"></asp:RegularExpressionValidator>
</td>
What is the secret to getting this to work? Also, is a / character a risky character?