成都网站建设设计

将想法与焦点和您一起共享

asp.net模糊搜索

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());
                }

            }
        }

网站题目:asp.net模糊搜索
分享网址:http://chengdu.cdxwcx.cn/article/gjpcpi.html