Posted on: 12/2/2013 5:15:41 PM | Views : 1161

Hi everyone,
I'm stuck with a problem due to my low level knowledge of .net.
I have a form where a field (ID: pivaTextBox) must have multiple validation checks.
First of all it must be "required", so I created a RequiredFieldValidator instance (ID: RequiredPiva). It must also be compliant to a regular expression, so I created a RegularExpressionValidator instance (ID: PivaSize). The second must be fired ONLY WHEN a peculiar value ("it") is selected from the "nations" dropdownlist, so I put RegularExpressionValidator to be Enabled="False" as default. The nations dropdownlist activates also a state/province dropdownlist.
Here is what I wrote:
protected void nazioneDropDownList_SelectedIndexChan ...

Go to the complete details ...