Avatar of Ollie90
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

ASP.NET

Avatar of undefined
Last Comment
archweb

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

Minh Võ Công

Pratima

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

ASKER CERTIFIED SOLUTION
archweb

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
or
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
Ollie90

ASKER
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?
archweb

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.
Ollie90

ASKER
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?
archweb

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 !