Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody,

By Default MVC provides the Class for the Error : input-validation-error and Valid for right value.

My Requirement : I need to show Image on Cornor of Control when it generates error or valid data.

So please suggest me the option how to do that.

Please suggest me any tutorial or sample for that.

Thanks
Posted

1 solution

update .input-validation-error style like this -
where "/Images/error_arrow.png" is image path to show with control

CSS
.input-validation-error {
    background-image: url(/Images/error_arrow.png;) !important;
    background-position: 100% 50% !important;
    background-repeat: no-repeat !important;
    border-color: red !important;
    border-style: solid !important;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900