搜索按钮代码 [英] searching button code

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

问题描述

在我的项目中使用文本框输入值成功搜索使用sql server数据库,但我也可以使用下拉列表。当下拉列表中有一个值select并且该值传递数据库并匹配数据库中的数据时,该记录返回网格视图中的值。怎么做呢。我的项目就像两个文本框,一个下拉控件。当没有输入文本框值或没有选择下拉菜单然后返回所有数据。当一个文本框和下拉选择然后匹配的数据返回。

in my project using text box enter value successful search using sql server database but i can also use the drop down list . when the drop down list one value select and this value pass the data base and match the data in data base and this record return the value in grid view. how can do it.and my project like as two text box,one dropdown control.when ever without enter textbox value or no select drop down then return all the data. when one textbox and drop down select then matched data return.
and

推荐答案

尝试通过ASP.NET中的DropDownList搜索记录 [ ^ ]。


这篇关于搜索按钮代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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