M
msnews.microsoft.com
Hi All,
I m facing problem in Server Side Validation.
For Example The Scenario is
I have two fields on the page
1 Country Dropdown List
2 Province Textbox
3 State Dropdown List
I put two validation controls on the page
1 one is RequiredFieldValidator for Province Textbox
2 second is CompareValidator for State Dropdown List
If the Country USA is selected then State should be validated whether a valid state is selected or not and Province Textbox should not validated.
If the Country other than USA is selected then Province Textbox is validated and State Dropdown List should not be validated.
But on the server when i call Page.Validate() method this validate both controls whatever is the Country is selected.
How can i disable the validation on ther server regarding of my choice.
Regards,
Muhammad Jamil Nawaz
I m facing problem in Server Side Validation.
For Example The Scenario is
I have two fields on the page
1 Country Dropdown List
2 Province Textbox
3 State Dropdown List
I put two validation controls on the page
1 one is RequiredFieldValidator for Province Textbox
2 second is CompareValidator for State Dropdown List
If the Country USA is selected then State should be validated whether a valid state is selected or not and Province Textbox should not validated.
If the Country other than USA is selected then Province Textbox is validated and State Dropdown List should not be validated.
But on the server when i call Page.Validate() method this validate both controls whatever is the Country is selected.
How can i disable the validation on ther server regarding of my choice.
Regards,
Muhammad Jamil Nawaz