搜索下拉选择的数据 [英] search data on dropdown selection

查看:49
本文介绍了搜索下拉选择的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..我正在做一个关于图书馆管理的项目。在其中一个页面我有一个下拉列表,其中包括精炼请求,未定义请求,批准请求和未批准请求。当我选择任何一个为ex:refine请求,未提炼的整个数据请求应显示在网格视图中。此处不添加任何按钮。请任何人帮我这样做。我不知道该怎么做。谢谢。

Hi all..i am doing a project on library management.In one of the page i have one drop down list which includes refined requests,unrefined requests,approved requests and unapproved requests.When i select any one for ex:refined request,whole data requests which are not refined should be displayed in grid view.No button click is added here.Please any one help me doing this.I dont know how to do it.thank you.

推荐答案

使用下拉列表的SelectedIndexChanged()事件,并根据当前选择编写逻辑以获取数据。
Use the dropdown's SelectedIndexChanged() event, and write the logic to get the data on the basis of current selection.


答案非常简单您必须在dropdown_selectedIndexChange事件上编写gridview绑定代码,并将下拉列表的Allow Auto Postback属性设置为true。因此,当您从下拉列表中选择任何值时,您将能够看到带有现有绑定数据的Gridview。
The answer is really so simple for that you have to write your gridview binding code over the dropdown_selectedIndexChange event and also set Allow Auto Postback property true of dropdown. So, when you select any value from dropdown you will be able to see Gridview with existing bind data.


下拉AUTO POST BACK属性设置为true并且网格视图绑定数据代码放入! ispostback



i希望对你的帮助
Drop Down AUTO POST BACK Property set to true and grid view bind data code place in !ispostback

i hope its help to u


这篇关于搜索下拉选择的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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