I have the following code:
<asp:TableCell>
<asp:Label Text="Date of Birth:" Runat="server" cssClass="EditLabel" ID="Label3"/>
</asp:TableCell>
<asp:TableCell>
<asp:Textbox id="txtDOB" Runat="server" EnableViewState="True"/>
<asp:CustomValidator ControlToValidate="txtDOB" ErrorMessage="Date of Birth is not Valid" Runat="server" OnServerValidate="CheckDOB">*</asp:CustomValidator>
</asp:TableCell>
<asp:TableCell>
Function is defined as:
Protected Sub CheckDOB(ByVal source As Object, ByVal args As ServerValidateEventArgs)
....
End Sub
When I submit the code function is never hit. What is missing here?
Text="Add Participant" Runat="server" ID="btnAddParticipant"/> </asp:TableCell> </asp:TableRow>