带下拉菜单的搜索按钮? [英] Search button with dropdown?
问题描述
如何使用选定的下拉列表值制作搜索按钮
你可以帮我请asp.net编码
i有数据库我怎么能开始编码??
我尝试了什么:
即时通讯未尝试即时通讯卡住....................
how i can making search button with selected drop down list values
can you help me please the asp.net coding
i have the database how can i started the coding ??
What I have tried:
im not tried im stuck ....................
推荐答案
按照以下步骤
阅读按钮点击事件中的下拉列表值。
如何在下拉列表中获取价值?使用c#.net | ASP.NET论坛 [ ^ ]
如何获得下拉列表在asp.net中选择了项目值 [ ^ ]
使用ADO.Net从SQL读取数据
.net - 将SQL表读入C#DataTable - Stack Overflow [ ^ ]
为您的搜索条件添加参数
sqlparameter [ ^ ]
SQL参数c# [ ^ ]
使用以下代码将数据集绑定到网格视图
Follow these steps
Read the dropdown list value in the button click event.
how to get the value in dropdownlist? using c# .net | The ASP.NET Forums[^]
How to get dropdownlist selected item value in asp.net[^]
Using ADO.Net read the data from SQL
.net - Read SQL Table into C# DataTable - Stack Overflow[^]
add parameters for your search criteria
sqlparameter[^]
SQL Parameters c#[^]
using the below code bind the dataset to your grid view
gridview1.DataSource = ds;
gridview1.DataBind();
*请参阅完整的示例和来源代码
创建数据库搜索页面 [< a href =https://msdn.microsoft.com/en-in/expression/dd571513.aspxtarget =_ blanktitle =New Window> ^ ]
http://www.aspdotnet-suresh.com/2011/12/ search-records-in-gridview-and.html [ ^ ]
使用TextBox在ASP.Net中的SqlDataSource中使用FilterExpression过滤GridView [ ^ ]
*Refer the complete examples with source code
Create a Database Search Page [^]
http://www.aspdotnet-suresh.com/2011/12/search-records-in-gridview-and.html[^]
Filter GridView with TextBox using FilterExpression in SqlDataSource in ASP.Net[^]
这篇关于带下拉菜单的搜索按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!