十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
if (!string.IsNullOrEmpty(COURSEWARE_NAME.Text)) { char[] c = COURSEWARE_NAME.Text.ToCharArray(); string nameconditiob = ""; for (int i = 0; i < c.Length; i++) { if (i == 0) { br.AppendFormat("and COURSEWARE_NAME like '%{0}%'", c[i].ToString()); } else { br.AppendFormat("and COURSEWARE_NAME like '%{0}%'", c[i].ToString()); } } }