Textbox style upon validation

al445843

New member
Joined
Mar 5, 2003
Messages
2
Location
Mexico City
I have a Textbox with a RequiredFieldValidator
Is there a way to change the style of a textbox when the validation fires, instead of having a message display?
 
You could check within the IsPostBack of Page_Load to see if the textbox fits your requirements. If it isnt valid you could use TextBox1.CssClass = "NewStyle".
 
Back
Top