W
wolf
There are three webcontrol on my asp.net form: a TextBox, a submit button
and a RegularExpressionValidator. And I had set ControlToValidate property
of the RegularExpressionValidator to the TextBox. But now, when I input a
string in the textbox and press Enter key, the form was submit without
client javascript validate.
Why? And what should I do to enable client validate before submit the form
whethe press Enter key or click Submit button?
Thanks!
and a RegularExpressionValidator. And I had set ControlToValidate property
of the RegularExpressionValidator to the TextBox. But now, when I input a
string in the textbox and press Enter key, the form was submit without
client javascript validate.
Why? And what should I do to enable client validate before submit the form
whethe press Enter key or click Submit button?
Thanks!