注册 登录
编程论坛 ASP.NET技术论坛

搜索功能求助

haoliaos 发布于 2007-07-04 10:25, 568 次点击
有谁做过吖...可以提供资料吗
只有本站会员才能查看附件,请 登录

[此贴子已经被作者于2007-7-4 10:27:19编辑过]

4 回复
#2
bygg2007-07-04 10:29
把下拉列表中选择的项作为查询的条件??
#3
makewelldone2007-07-07 20:10

you can writer a sql language :
select * from tablename where sqlwhere = name or employ= name or companyname=name.

you can use datasource rutrun the reslut.


SqlConnection con = new SqlConnection("linkingQurey");
SqlComand com =new SqlCommand("ComandQuery",con);
DataSet ds = new DataSet();
DataApdater da = new(com);
da.Fill(ds,tablename);
DataGrid.DataSource=ds;
DataGrid.Meber=tablename;
DataGrid.DataBind();
you can trying.

#4
刘小芳2007-07-09 22:43
一个组合查询
#5
makewelldone2007-07-11 13:39
是的,一个组合
1