hi,
I have different controls on my form (most of them with required field
validators)
one of which is a date field with a custom field validator on it, but i
don't knwo why its is not called , i tried it in debug mode but the
function not called at all.
all the required field validators functions are being called properly.
i m pasting my code below, can any body tell me whts the problem with my
code.
regads
server side code
''''''''''''''''''''''''''''''
Private Sub CVal1_ServerValidate(ByVal source As System.Object, ByVal
args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles
CustomValidator1.ServerValidate
If IsDate(args.Value) And Trim(args.Value) <> "" Then
args.IsValid = True
Exit Sub
End If
End Sub
HTML CODE
'''''''''''''''''''''''''''''
<asp:textbox id="txtDateIn" runat="server"
CssClass="formObject">2/2/2002</asp:textbox>
<asp:customvalidator id="CustomValidator1" runat="server"
EnableClientScript="False" ControlToValidate="txtDateIn"
ErrorMessage="*"></asp:customvalidator>
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!