Hello everyone, I have an issue. I have two validation groups called "test1" and "test2." Now here is my code:
Protected Sub AsyncFileUpload1_UploadedComplete(ByVal sender As Object, ByVal e As AjaxControlToolkit.AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedComplete
Me.Page.Validate("test1")
If Not Me.Page.IsValid Then
Return
End If
If Me.Page.IsValid Then
'do something
End If
End Sub
My idea is that I want to validate only test1. If test1 is valid, then do something. But I believe Page.IsValid also checked test2. As a result it keeps returning false. I am thinking about specifying the validation group on the Ajax Asynfileupload control
to test1, but there is no validation group property for this control.
Is there a way I can get around this?
Thanks.< ...
Go to the complete details ...