Asp.Net中的验证器 [英] Validator in Asp.Net

查看:81
本文介绍了Asp.Net中的验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.....
我正在asp.net中使用验证器(六个验证器)来验证表单字段....它的工作正常....


现在我想做的是,当用户填充错误信息时出现正确的信息(图像)时出现错误信息...

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

推荐答案

您可以像这样使用,

You can use like this,

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



您可以从中查看详细信息,
http://codepronet.blogspot.com/2009/03/image-sound- in-validator-controls.html [ ^ ]

让我们知道您是否有任何问题.



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.


没有,亲爱的,...,当用户将正确的信息填充到控件中时,我想要图像
no dear,,,,, i want image when user will fill right information in the control


这篇关于Asp.Net中的验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆