Posted on: 7/4/2015 7:27:35 PM | Views : 728

Hi,
I am trying to create a customvalidator for all my textboxes in a table. I want to create them dynamically.
It seems as if it's creating them but when I click the submit button then no validation occurs.
The validation must only occur if both to and from textboxes are filled in.
If both to and from textboxes are filled in then I must check that from value is smaller than to value.
Here is my code
Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click 'If Page.IsValid Then ' Response.Write("valid") 'Else ' Response.Write("invalid") 'End If End Sub Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load AddCustomValidation(tbl1) End Sub Private Sub AddCustomValidation(ByVal container As Control) Dim custom As CustomVali ...

Go to the complete details ...