我尝试创建一个自定义验证器来验证一个复选框,并得到了以下错误:“不能验证”ControlToValidate属性“CustomValidator1”引用的"Control‘CustomValidator1“。
下面是我的前端代码:
<li>
<asp:CheckBox ID="cbVerify" runat="server" Text="I certify that the information entered on this form is correct and accurate." />
</l
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UploadVideo.ascx.cs" Inherits="Controls_UploadVideo" %>
<h4>Select a video file to upload:</h4>
<asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Condi