可以将customvalidator应用于gridview中的文本框吗? [英] can customvalidator be applied to a textbox in a gridview ?
本文介绍了可以将customvalidator应用于gridview中的文本框吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将customvalidator应用于gridview中的文本框?
can customvalidator be applied to a textbox in a gridview ?
推荐答案
是的CustomValidator
可以用于GridView
内的控件,因为它具有ID
,您可以将其用作CustomValidator
的ControlToValidate
属性中的值.
问候,
爱德华
YesCustomValidator
can be used on controls inside aGridView
because it has anID
which you can be used as value inCustomValidator
''sControlToValidate
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屋!
查看全文