Thanks, my dear Douglas...you are absolutely right. Disabling EnableClientScript in conjunction with Page.IsValid does suppress the ErrorMessage when a control, which has invalid data, loses focus but this gives rise to another petty problem.
Suppose a Form has a TextBox & a Button. I want users to enter their age in the TextBox. It's quite obvious that this TextBox should only accept numbers & no letters. So along with a RequiredFieldValidator, the TextBox also has a RegularExpressionValidator which ensures that users enter only numbers. Note that the sub that the Button invokes makes use of Page.IsValid.
Suppose a user enters some letters in the TextBox instead of a number. Now since EnableClientScript is set to False, when the TextBox loses focus, the ErrorMessage gets suppressed. The user clicks the Button. The ErrorMessage gets displayed now since the Button sub uses Page.IsValid. No problems till here....
Assume that after this, the user enters his proper age, say, 25, in the TextBox which is very much valid. But now though the data in the TextBox is valid, when the TextBox loses focus, the ErrorMessage still remains. I want the ErrorMessage to get suppressed under such circumstances since the data in the TextBox is valid now. How do I accomplish this?
Thanks
RON
*********
If you have an apple & I have an apple & we exchange our apples, then each of us will still have only 1 apple but if you have an idea & I have an idea & we exchange our ideas, then each of us will have 2 ideas