J
Janaka
We have a multi-line textbox that we do not want to allow the user to enter
HTML code. I've added a regularexpression validator to the page which
catches the error. However after editing it doesn't remove the error
message. Anyone have this problem?
<asp:RegularExpressionValidator id="sDescValid" ControlToValidate="sDesc"
ValidationExpression="<[^>]*>" Display="Dynamic" ErrorMessage="No HTML code
allowed in description" runat="server" Font-Bold="true"/>
HTML code. I've added a regularexpression validator to the page which
catches the error. However after editing it doesn't remove the error
message. Anyone have this problem?
<asp:RegularExpressionValidator id="sDescValid" ControlToValidate="sDesc"
ValidationExpression="<[^>]*>" Display="Dynamic" ErrorMessage="No HTML code
allowed in description" runat="server" Font-Bold="true"/>