Author: gangelo | Posted on: 4/10/2009 7:07:20 AM | Views : 860

Using 3.5 Framework...

 Am I missing something?
I have a simple textbox and submit button on my page; the textbox has a RequiredFieldValidator (Display="Dynamic") attached. If I change the ValidationGroup of both the validator AND the submit button in code-behind, the client-side validation behaves in this strange manner:
When I tab off the empty textbox, no error is displayed (this should not be). When I click the submit button on the very first time (textbox empty), client-side validation takes place and the error is shown (this is correct).
When I enter text in the textbox and click submit, postback occurs (this is correct).After postback (#3 above), if I clear out the textbox and tab off, no error is displayed (this should not be).After postback (#3 above), if I clear out the textbox and click the submit button, no postback takes place (this is correct) and NO error is displayed (this is incorr ...

Go to the complete details ...