SharePoint DateTimeControl validation
26/04/2018 12:12
In case of SharePoint:DateTimeControl validation there is special string needed for assign to ControlToValidate attribute: controlID$controlIDDate
<tr>
<td class="formlabel">Absolvoval dňa *</td>
<td class="formControl">
<SharePoint:DateTimeControl ID="AbsolvovalDna" runat="server" DateOnly="true" />
</td>
<td class="formValidation">
<SharePoint:InputFormRequiredFieldValidator runat="server"
ControlToValidate="AbsolvovalDna$AbsolvovalDnaDate"
ErrorMessage='Položka "Absolvoval dňa" je povinná'
CssClass="ms-formvalidation" />
</td>
</tr>
<tr>
<td class="formlabel">Absolvoval dňa *</td>
<td class="formControl">
<SharePoint:DateTimeControl ID="AbsolvovalDna" runat="server" DateOnly="true" />
</td>
<td class="formValidation">
<SharePoint:InputFormRequiredFieldValidator runat="server"
ControlToValidate="AbsolvovalDna$AbsolvovalDnaDate"
ErrorMessage='Položka "Absolvoval dňa" je povinná'
CssClass="ms-formvalidation" />
</td>
</tr>