验证DropDownList
判断,如果选择项的值是 0 提示
<asp:comparevalidator id="checknat_id" runat="server" Display="Dynamic" ControlToValidate="ddl_pro_class" Type="String" ValueToCompare="0" Operator="NotEqual" ErrorMessage="请选择项目分类" ></asp:comparevalidator>
<asp:comparevalidator id="checknat_id" runat="server" Display="Dynamic" ControlToValidate="ddl_pro_class" Type="String" ValueToCompare="0" Operator="NotEqual" ErrorMessage="请选择项目分类" ></asp:comparevalidator>