DDL Custom Validator
I have created a custom validator modeling after the example in chapter 9.
The CustomValidator is in a cell with the DDL it is to validate. They are both contained in a DetailsView and the DetailsView is contained in the first step of a Wizard.
There seem to be two problems:
2) The ServerValidator function is only called if something is selected in the DDL.
My goal is to ensure that something is selected in the DDL.
As it is working now when the user clicks the NEXT button on the Wizard page w/o having selected anything in the DDL, the DDL is validated in the ButtonClick function with code I have there.
So how do I get the DDL validated on the client side BEFORE a post back? I am making the assumption that the ButtonClick C# function designated on the OnNextButtonClick parameter on the Wizard control is running on the server.
By the way this all works just fine if I actually select something in the DDL, but I am concerned with the occaison when the user does NOT select anything in the DDL.
Thanks in advance for all of the help.