Click here to Skip to main content
15,913,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

1. i have one form and this form with master page.
so, this page in i explained one table with some fields like name,city,number etc, and it's mandatory.

2. now, also i defined one table with some fields on master page and it's also mandatory.

so, now in my one page, two tables(fields) are there, when i defined validation in one table, so 2nd table, which in master page it's also mandatory, in this case
how can i use validation in two tables.


Thanks,
Posted

 
Share this answer
 
Comments
Pratham4950 6-Sep-12 4:56am    
Thanks Sangramsingh Pawar.
Sangramsingh Pawar 6-Sep-12 4:58am    
u r welcome
Hi,

Please user the Validation Group property for that.

For Example, 1st table control has validation group 'address' and that submit button has also validation group 'address' then when you click on button at that that time it will validate those controls whole validation group is 'address'.

For the second table controls you can user another validation group like 'Details'.

see the example in the below link. It might be help you and you will get the idea.

http://www.w3schools.com/aspnet/prop_webcontrol_button_validationgroup.asp[^]

Thanks,
Viprat
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900