javascript自定义验证器问题 [英] javascript custom validator issue

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

问题描述

大家好,我想使用 customValidator.ClientValidationFunction = fnClientFunction

customValidator in validator groupegroup1







函数fnClientFunction(source,args)

{

....

}

此customvalidator仅针对gridview的文本框列触发,其中行号> int i

那么如何实现呢?

提前谢谢。

hi guys,i want to use customValidator.ClientValidationFunction = fnClientFunction.
customValidator in validator groupe "group1"

and

function fnClientFunction(source, args)
{
....
}
this customvalidator fires just for a gridview's textbox column where row numbers > int i
so how to achive that?
thanks in advance.

推荐答案

你可以使用自定义验证器控件或javascript进行验证。无论如何,如果Gridview验证应该是Gridview编辑或插入模式,那么只会验证行。



请参阅以下链接以检查如何实现它。



http://www.aspdotnetcodes.com/GridView_Dynamic_Validation.aspx [ ^ ]



http://msdn.microsoft.com/en-us/library/ms972948 .aspx [ ^ ]



http://msdn.microsoft。 com / en-us / library / bb426882.aspx [ ^ ]



H.打开这有助于你...
You can use custom validator control or javascript for the validation. Anyways, if the Gridview validations are supposed to be Gridview Edit or Insert mode so that row only will be validated.

Refer the below link to check how to implement it .

http://www.aspdotnetcodes.com/GridView_Dynamic_Validation.aspx[^]

http://msdn.microsoft.com/en-us/library/ms972948.aspx[^]

http://msdn.microsoft.com/en-us/library/bb426882.aspx[^]

Hope this helps you...


这篇关于javascript自定义验证器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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