需要在复选框列表的帮助下显示数据 [英] Need to display data with the help of checkboxlist

查看:74
本文介绍了需要在复选框列表的帮助下显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends

我的查询我想在gridview外的按钮列表上单击复选框的情况下在gridview中显示数据..
我的控件

2个用于日期的文本框
按钮(提交)
核对清单

我只想在单击复选框列表时在gridview中显示数据(当我从复选框列表中选择3个项目或所有项目时)

请帮助解决此问题..
请帮我提供相同的代码.....

在此先感谢

Pratham

Hi Friends

My query i want to show the data in gridview with the help of checkboxlist outside the gridview on button click ..
My controls

2 textbox for dates
button (submit)
checkboxlist

i just want to display the data in gridview when i click on the checkboxlist (when i select 3 items OR all items from checkboxlist)

Kindly need help to resolve the issue ..
Kindly help me with code for the same.....

Thanks in advance

Pratham

推荐答案

请帮我提供相同的代码.....
为什么要编码?你为什么不能自己做呢?努力吧!


需要帮助以解决此问题..
什么事您根本没有提到您的问题.


步骤:
1.将文本框和复选框列表以及提交按钮和隐藏的gridview放在页面中.
2.单击提交按钮后,从复选框列表中获取文本框和选中项目的值
3.根据这些值形成查询,并从数据库中获取与它们相关的数据
4.将数据绑定到datagrid,使其可见.

试试吧!
Kindly help me with code for the same.....
Why code? Why cannot you do it by yourself? Make some effort!


Kindly need help to resolve the issue ..
What issue? You did not mention your issue at all.


Steps:
1. Put textboxes and checkboxlist in a page along with submit button and a hidden gridview.
2. Once submit button is clicked, get values of textbox and checked items from checkboxlist
3. Form a query based on the values and get data related to them from database
4. Bind the data to datagrid, make it visible.

Try!


这篇关于需要在复选框列表的帮助下显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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