在gridview中验证 [英] Validation in gridview

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

问题描述

我有一个gridview,其中包含TemplateFields中的复选框和3个字段以及gridview外部的按钮。两个字段在EditItem模板中,带有asp.net RequiredField Validator。我想仅在选中复选框时触发valiadtion,但无论checkBox是否被选中,都会触发验证。



plz help

I have a gridview with checkbox & 3 fields in TemplateFields and a button outside the gridview. Two fields are in EditItem Template with asp.net RequiredField Validator. I want to fire the valiadtion only on selection of checkbox, but validation is fired whether checkBox is checked or not.

plz help

推荐答案

您需要阅读: http: //www.aspdotnet-suresh.com/2010/09/gridview-check-box-validation-using.html [ ^ ]


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

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