如何在 RegularExpressionValidator ErrorMessage 字段中插入换行符?

How do you insert a newline character within the RegularExpressionValidator ErrorMessage Field?

考虑以下代码:

<asp:RegularExpressionValidator 
        ID="MyTestId"  
        ValidationGroup="MyTestGroup" 
        ErrorMessage="You are a silly user. You entered the wrong format for this problem. Please try again. Using this format! ELRLDKX##Z"
        ValidationExpression="some unrelated regex"
        runat="server"
        ControlToValidate="MyTestTextbox">
</asp:RegularExpressionValidator> 

有没有办法在 ErrorMessage 字符串中插入某种转义字符以确保 请重试。使用这种格式! ELRLDKX##Z 在另一条线上?我试过了,\n 没有成功。

验证器位于网页上,因此您只需将 html 代码添加到文本中,例如 <br />

ErrorMessage="You are a silly user. You entered the wrong format for this problem.<br />Please try again. Using this format! ELRLDKX##Z"