ASP.NET Validation Control with Images Notification

Most of the time we used simple text messages for error notifications when ASP.NET validator  control fails the validation. But the interesting things with ASP.NET validation controls is instead of simple text we can display images as error notification. Not only images we can embed sounds or we can display some html format text as well.

To achieve instead of  setting ErrorMessage property of an Validation control, you need to set Text Property with proper HTML content.

image

image

Not only images, you can also display additional information as an html content or normal text message.

image

image

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

One Comment to “ASP.NET Validation Control with Images Notification”

  1. Pingback: Gaylene Engstrom

Comments are closed.