web analytics

displaying an image for error message in ASP.NET validator control

There are many instances when user wants to see interactive and elegant images in their websites, either they look at any of the controls, or the whole page itself.
In ASP.NET validator controls, mostly it is seen that "*" is placed when an error has occured. Can we add some image to display when an error has occured. It is very simple you just have to write some html to display an image in ErrorMessage property of validator eg:

<img src=error.gif’ style=’width:10px;height:10px;’>

Leave a Reply

%d bloggers like this: