Custom Validator [NOT working]
-
Hi, My Custom Validator DOESNOT want to execute :( Please help me. Here's the code.. I am desperate.. Front-End ========= VB SCRIPT ========= Protected Sub CheckUsername(ByVal sender As Object, ByVal e As ServerValidateEventArgs) Dim ds As New DataSet Dim objUser As New clsUser objUser = New clsUser ds = objUser.getUserNameDetails(Me.txtUsername.Text) If (ds.Tables(0).Rows.Count > 0) Then e.IsValid = False End If End Sub
-
Hi, My Custom Validator DOESNOT want to execute :( Please help me. Here's the code.. I am desperate.. Front-End ========= VB SCRIPT ========= Protected Sub CheckUsername(ByVal sender As Object, ByVal e As ServerValidateEventArgs) Dim ds As New DataSet Dim objUser As New clsUser objUser = New clsUser ds = objUser.getUserNameDetails(Me.txtUsername.Text) If (ds.Tables(0).Rows.Count > 0) Then e.IsValid = False End If End Sub
I think the angle brackets in your error message may be confusing the parser... That's just an idea though.
-
I think the angle brackets in your error message may be confusing the parser... That's just an idea though.