asp.net模糊搜索
if(!string.IsNullOrEmpty(COURSEWARE_NAME.Text)){char[]c=COURSEWARE_NAME.Text.ToCharArray();stringnameconditiob="";for(inti=0;i<c.Length;i++){if(i==0){br.AppendFormat("andCOURSEWARE_NAMElike'%{0}%'",c[i].ToString());}else{br.AppendFormat("andCOURSEWARE_NAMElike'%{0}%'",c[i].ToString());}}}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。