本文介绍了在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

推荐答案


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

08-20 22:01