从复选框存储检查值 [英] store checked value from checkbox

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

问题描述

在我的项目中,一个列表框和一个面板...当我从列表框中选择一个类别,然后在该面板中显示子类别时,我提供复选框以选择该子类别.....所以现在我要这样做选定的复选框值存储在数据库中,因此我如何为此编写代码以及可以在哪个事件上编写代码??????
使用转发器控件的多个复选框m,请根据该控件给我解决方案……帮助我....

In my project one listbox and one panel...when i select one category from listbox then subcategory''s display in that panel and i provide checkbox to select that subcategory.....so now i want to do that selected checkbox value store in database so how can i write code for this and on which event can i write code??????
for multiple checkbox m using repeater control so give me solution according to that control plz......help me....

推荐答案

我会使用multi选择列表框的功能,然后让用户按下按钮以开始该过程.

然后遍历多个选择,然后做自己的事情,直到完成遍历.如果您要更新记录,则一次更新每条记录.
I would use the multi-select feature of the listbox, and have the user press a button to start the process.

Then loop through the multiple selections, and do your thing till the loop is done. If your updating a record, then update each record one at a time.


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

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