[英]RequiredFieldValidator Issue
My requiredfield control is validating the "SEL"(default invalid value) value but when I do change the value to a valid one, the ErrorMessage/Text does not disappear until I submit the form again. 我的requiredfield控件正在验证“ SEL”(默认无效值)值,但是当我将值更改为有效值时,ErrorMessage / Text不会消失,直到我再次提交表单。
<asp:DropDownList ID="ddlDocumentType" runat="server" DataTextField="Description" DataValueField="Code" />
<asp:RequiredFieldValidator ControlToValidate="ddlDocumentType" Text="*" ID="rfvDocumentType" runat="server" Display="Dynamic" InitialValue="SEL" />
It happens in all my dropdownlists/requiredfieldvalidators. 它发生在我所有的下拉列表/必需的字段验证器中。 How does the Text/ErrorMessage disappear when I change the value on the dropdownlist ?
当我更改下拉列表中的值时,Text / ErrorMessage如何消失? I'm guessing it has to disappear when the option is valid !
我猜它在选项有效时必须消失!
Thanks, 谢谢,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.