Click here to Skip to main content
15,886,778 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi.....
I'm using validator(six validators)in asp.net to validate form fields....its working fine ....


now i want to do is when user fill correcrt info correct sign (image) appear insted of error messege...
Posted

You can use like this,

XML
<asp:requiredfieldvalidator id="reqPercentage" runat="server" errormessage='<img src="image.gif">' controltovalidate="txtPercentage">
</asp:requiredfieldvalidator>


You can see the details from,
http://codepronet.blogspot.com/2009/03/image-sound-in-validator-controls.html[^]

Let us know if you have any issues.
 
Share this answer
 
v2
no dear,,,,, i want image when user will fill right information in the control
 
Share this answer
 
Comments
Arun Jacob 10-Jun-10 7:50am    
Its possible through javascript code. Try javascript.

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