如何从gridview获取复选框值? [英] how to get checkbox value from gridview ?

查看:70
本文介绍了如何从gridview获取复选框值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用标签和四个复选框作为gridview中的模板字段。在标签上我显示问题并在第一个复选框上显示选项A,在第二个复选框显示选项B,在第三个显示C和第四个复选框显示选项D.如果我选择A选项并单击按钮然后如何在gridview之外的texbox上打印此复选框的值?

I use a label and four checkbox as a template field in gridview.On label I display question and on first checkbox I display options A, on 2 nd checkbox display option B, on 3rd display C and on 4 th checkbox display option D.if I select A options and click on button then how to print the value of this checkbox on a texbox which is outside of the gridview?

推荐答案

这是一个想法(在MSDN上):如何查找位于父控件模板中的子控件 [ ^ ]

CP KB:在线测验 [ ^ ]
Here is an idea (on MSDN): How to find child controls that are located in the template of a parent control [^]
CP KB: Online Quiz[^]


这篇关于如何从gridview获取复选框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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