Can you not validate a checkboxlist or something? Here's what I have:
<tr><td><asp:CustomValidat
or Enabled="true" ID="cusValEntreeSelections
" ControlToValidate="chkbxEn
treeList" runat="server" onservervalidate="cusValEn
treeSelect
ions_Serve
rValidate"
/></td></tr>
<tr><td align="right" ><asp:CheckBoxList ID="chkbxEntreeList" TextAlign="right" RepeatColumns="2" RepeatLayout="Table" RepeatDirection="Vertical"
runat="server" /> </td></tr>
Runtime Error:
Control 'chkbxEntreeList' referenced by the ControlToValidate property of 'cusValEntreeSelections' cannot be validated.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Control 'chkbxEntreeList' referenced by the ControlToValidate property of 'cusValEntreeSelections' cannot be validated.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Control 'chkbxEntreeList' referenced by the ControlToValidate property of 'cusValEntreeSelections' cannot be validated.]
System.Web.UI.WebControls.
BaseValida
tor.CheckC
ontrolVali
dationProp
erty(Strin
g name, String propertyName) +1840561
System.Web.UI.WebControls.
CustomVali
dator.Cont
rolPropert
iesValid()
+32
System.Web.UI.WebControls.
BaseValida
tor.OnPreR
ender(Even
tArgs e) +33
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +86
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +2041
Start Free Trial