The color of the control is not part of the submitted data when a POST occurs. You will need to create a sister hidden field that stores the valid/invalid data. Something like <input type="hidden" name="txtActualOrder_ValidationResults"/>
.
Of course, validating client side to update the UI, and then throwing away the results of that validation and redoing it server side is the correct way to perform validation.
Alex Morris
2010-09-20 21:59:18