当前位置:编程学习 > C#/ASP.NET >>

用dropdownlist分类、关键字查询c#代码怎么写

dropdownlist分类,关键字查询同一张表中的信息,求C#代码 --------------------编程问答-------------------- 问题描述太模糊。。。 --------------------编程问答-------------------- 大家看他的结贴率,哎 --------------------编程问答--------------------   获得dropdownlist中的分类值,加上关键字 在表中查询不就可以了吗?? --------------------编程问答-------------------- 额 楼主什么意思
用dropdownlist的相应值 当查询条件不行吗 --------------------编程问答-------------------- 看不懂问题。 --------------------编程问答-------------------- 该不会是select * from tabletest where "+DropDownLIstTest.selectedvalue+" like '%"+TextBoxTest.Text.Trim()+"%'吧 --------------------编程问答-------------------- string strFind=dropdownlist.selectedValue;
sql语句中:"...where 字段名 like '%"+ strFind+"%'"
是这意思么 --------------------编程问答-------------------- select * from table where field='"+this.dropdownlist1.selectValue+"' --------------------编程问答-------------------- 是通过dropdownlist联动实现查询还是通过dropdownlist.SelectedValue和textbox等关键字值实现查询 --------------------编程问答-------------------- 问题描述不清楚,如果是根据DropDownList分类,用另一个TextBox作为关键字查询,那么就是连个条件,传过去组合查询字符串 --------------------编程问答-------------------- 他就是想 根据DropDownList的值 来改变列表的数据源 我想是这样的
多表查询 根据FID来做咯 --------------------编程问答-------------------- dropdownlist.SelectedValue 联动  模糊查询都可以.
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,