• 验证控件验证DropDownList


      <tr>
               <td class="caption td_caption">
                     免疫程序:
              </td>
               <td class="txtbox td_textbox">
                    <asp:DropDownList ID="ddlMYCX" runat="server" Width="200px" AutoPostBack="true" AppendDataBoundItems="true"
                                                        OnSelectedIndexChanged="ddlMYCX_SelectedIndexChanged">
                     </asp:DropDownList>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Display="None" ValidationGroup="ValidationGroup1"
                                                        ControlToValidate="ddlMYCX" Operator="NotEqual" Type="Integer " ValueToCompare="0"
                                                         ErrorMessage="<span class='ErrorMessage'>必须输入选择“免疫程序”</span>"></asp:CompareValidator>
                     <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="Vcompare" TargetControlID="CompareValidator1"
                                                        HighlightCssClass="validatorCalloutHighlight" />
                  </td>
     </tr>
  • 相关阅读:
    jquery动态生成button的点击事件
    datatable 相关属性翻译
    python程序出现403错误
    相同布局的div层叠,冲突问题解决
    js进阶
    css进阶
    pycharm快捷键及常用设置
    arcgis软件安装相关问题
    将input type="file" 类型的图片文件转成base64
    SpringMVC中的参数绑定总结
  • 原文地址:https://www.cnblogs.com/chengpeng/p/2278825.html
Copyright © 2020-2023  润新知