可以将customvalidator应用于gridview中的文本框吗? [英] can customvalidator be applied to a textbox in a gridview ?

查看:56
本文介绍了可以将customvalidator应用于gridview中的文本框吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将customvalidator应用于gridview中的文本框?

can customvalidator be applied to a textbox in a gridview ?

推荐答案

是的CustomValidator可以用于GridView内的控件,因为它具有ID,您可以将其用作CustomValidatorControlToValidate属性中的值.

问候,
爱德华
Yes CustomValidator can be used on controls inside a GridView because it has an ID which you can be used as value in CustomValidator''s ControlToValidate attribute.

Regards,
Eduard


看看-
http://www.youtube.com/watch?v=6ti2TKCciec [ http://geekswithblogs.net/davewill/archive/2008/09/04/124931.aspx [ ^ ]
http://kodethoughts.blogspot.com/2009/05/adding- custom-client-side-validation-to.html [ ^ ]
Have a look at -
http://www.youtube.com/watch?v=6ti2TKCciec[^]
http://geekswithblogs.net/davewill/archive/2008/09/04/124931.aspx[^]
http://kodethoughts.blogspot.com/2009/05/adding-custom-client-side-validation-to.html[^]


<pre lang="c#">you can use it as your r using image buttons/textboxes. set the "causeValidationTo" property to the texbox id used in gridviw.
This can be done from source code side... hope it will help


这篇关于可以将customvalidator应用于gridview中的文本框吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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