Link to home
Create AccountLog in
Avatar of Ollie90
Ollie90Flag for United States of America

asked on

change bordercolor of textbox/dropdown to red, instead of showing a red error message

instead of a text beside of the dropdownlist i want to make the border color of the dropdownlist red. is that possible in asp code? or do i need to work with a page.valid vb.ent script?
<asp:RequiredFieldValidator ID="FieldRequired" runat="server" ControlToValidate="DropDownList16"

ErrorMessage="This field is required!" ValidationGroup="FieldRequired"></asp:RequiredFieldValidator>

Open in new window

Avatar of Cong Minh Vo
Cong Minh Vo
Flag of Viet Nam image

that is not possible in asp code and suing validator controls

For this you need to use javascript functions for validations
Avatar of archweb
Flag of Algeria image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ollie90


i'm pretty blue at this java thing. Does the end user need to have java JRE installed? or is this something that IE does?
jQuery ( ) is the most famous javascript library, it is free and easy to use.

Avatar of Ollie90


yes, that might be, but i want to know if i need to install a java client of each pc of enduser of will IE 8.0 pick up this java code?
on other words .. who will run the java code from client side? java JRE or IE 8.0?
To run Javascript from the client you need nothing to install, it is meant to run on browser(IEx, Firefox, Safari ...) without any other supplement !