Hi,
I am generating dynamic controls (RadTextBox) on a page.
Set of 3 Rad TextBox in 5 rows.
txtFirstName_1 txtLastName_1 txtEmail_1
txtFirstName_2 txtLastName_2 txtEmail_2
txtFirstName_3 txtLastName_3 txtEmail_3
txtFirstName_4 txtLastName_4 txtEmail_4
txtFirstName_5 txtLastName_5 txtEmail_5
Now I want to Validate for first Row -> It should contain value for all three text boxes. (mandatory)
for next 4 rows I want to validate if any of the 3 text box is filled by the User, I need to force him to fill all three for that row.
If all blank then its valid.
for first row I added RequiredFieldValidator dynamically. but for next 4 rows I need client end validation like some generic JavaScript function that can validate all 3 controls value. If all 3 txtboxes are blank then no error other wise all 3 needed.
Please help.
Thanks
I am generating dynamic controls (RadTextBox) on a page.
Set of 3 Rad TextBox in 5 rows.
txtFirstName_1 txtLastName_1 txtEmail_1
txtFirstName_2 txtLastName_2 txtEmail_2
txtFirstName_3 txtLastName_3 txtEmail_3
txtFirstName_4 txtLastName_4 txtEmail_4
txtFirstName_5 txtLastName_5 txtEmail_5
Now I want to Validate for first Row -> It should contain value for all three text boxes. (mandatory)
for next 4 rows I want to validate if any of the 3 text box is filled by the User, I need to force him to fill all three for that row.
If all blank then its valid.
for first row I added RequiredFieldValidator dynamically. but for next 4 rows I need client end validation like some generic JavaScript function that can validate all 3 controls value. If all 3 txtboxes are blank then no error other wise all 3 needed.
Please help.
Thanks