How can I change border and background color of the control when any of the validation fails after submit button clicked.
I searched this in google but most of the solution provided in jQuery, but I don't want to use jQuery.
On validation error change back color
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hemant SrivastavaRank #581 · 4.2K reputationPosted Aug 2, 2012, 6:00 AM EDT
Dinesh Ambaliya45 reputationPosted Aug 2, 2012, 9:29 PM EDT
Hemant SrivastavaRank #581 · 4.2K reputationPosted Aug 3, 2012, 10:45 AM EDT
Bhushan BhureRank #5,034 · 314 reputationPosted Aug 3, 2012, 2:17 PM EDT
document.getElementById("<%=TextBox1.ClientID%>").style.backgroundColor = "Red"
Thanks,
Please mark this answer as accepted answer if it resolves your problem.