如何在dropDownCheckBoxes中添加Require字段验证...? [英] How to add the Require field validation in dropDownCheckBoxes ...?
本文介绍了如何在dropDownCheckBoxes中添加Require字段验证...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在dropDownCheckBoxes中添加Require字段验证...?
这是我的代码
Hi,
How to add the Require field validation in dropDownCheckBoxes ...?
This is my code
<asp:dropDownCheckBoxes ID="ddllanguage" runat="server" xmlns:asp="#unknown" onchange="onSelectionChange()"
AddJQueryReference="True" UseButtons="false" UseSelectAllNode="false" ClientIDMode="Static">
<Style SelectBoxWidth="200" dropDownBoxBoxWidth="200" dropDownBoxBoxHeight="130" />
<Texts SelectBoxCaption="-Select-" />
</asp:dropDownCheckBoxes>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddllanguage"
ErrorMessage="*" ToolTip="Language is required"
ValidationGroup="Veterinary" InitialValue="-Select-"
></asp:RequiredFieldValidator>
当我运行应用程序时,我收到此错误由'RequiredFieldValidator2'的ControlToValidate属性引用的控制'ddllanguage'无法验证。
任何人给予我有任何建议如何添加验证....
Regrads
Ravinder
When i run the application i am getting this error "Control 'ddllanguage' referenced by the ControlToValidate property of 'RequiredFieldValidator2' cannot be validated."
anybody give me any suggestion how to add the validation....
Regrads
Ravinder
推荐答案
参考
http://saplin.blogspot。 in / 2011/05 / dropdowncheckboxes-using-control.html [ ^ ]
这篇关于如何在dropDownCheckBoxes中添加Require字段验证...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文