Avatar of Ollie90
Flag 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 undefined
Last Comment

8/22/2022 - Mon
Minh Võ Công

Minh Võ Công


that is not possible in asp code and suing validator controls

For this you need to use javascript functions for validations
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Minh Võ Công


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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 ( jquery.com ) is the most famous javascript library, it is free and easy to use.

Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

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 !