P
pc
I've created a simple form with a submit button and a textfield. I
assigned a RequiredFieldValidator to the textfield and set
EnabledClientScript to ture. I noticed the validator did not display
the error message if the textfield was empty. It seems to me that the
client side validation script did not executed. After I pressed the
submit button, the validator displayed the error message. I tried
entering and clearing the textfield without pressing the submit button
and everything worked as described in the documentation. So my
question is why isn't the client side validation work the first time
(before pressing the submit button)? Is this by desgin?
assigned a RequiredFieldValidator to the textfield and set
EnabledClientScript to ture. I noticed the validator did not display
the error message if the textfield was empty. It seems to me that the
client side validation script did not executed. After I pressed the
submit button, the validator displayed the error message. I tried
entering and clearing the textfield without pressing the submit button
and everything worked as described in the documentation. So my
question is why isn't the client side validation work the first time
(before pressing the submit button)? Is this by desgin?