存储复选框的状态 [英] Store the status of a checkbox

查看:72
本文介绍了存储复选框的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview和每行的开头,有一个复选框。现在,我想在按一下按钮后知道,选中了哪些复选框。但是在pageLoad之后,GridView被重新绑定,并且关于复选框状态的信息丢失了。你有一些提示吗,我如何获得关于复选框的这些信息?



我尝试过:



我试图将数据存储在gridview的隐藏字段中,但它重置为。

Hi, I have a gridview and of the beginning of every row, there is a checkbox. Now I like to get to know after a button click, which checkboxes are checked. But after the pageLoad, the GridView is rebind and the information about the status of the checkbox lost. Do you have some tips, how I can get these information about the checkbox?

What I have tried:

I tried to store the data in a hiddenfield in the gridview, but it's reseted to.

推荐答案

存储有问题的值在会话var
Store the value in question in a session var


这篇关于存储复选框的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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