Пример #1
0
        public void DropDownListBindData()
        {
            this.GridView_Project.DataSourceID = null;
            DataSet       ds       = new DataSet();
            StringBuilder strWhere = new StringBuilder();

            if (txtKeyword.Text.Trim() != "")
            {
                strWhere.AppendFormat("specialFundRecord_methods like '%{0}%' or specialFundRecord_channel like '%{0}%' or specialFundRecord_description like '%{0}%'", txtKeyword.Text.Trim());
            }
            ds = bllsf.GetList(strWhere.ToString());
            GridView_Project.DataSource = ds;
            GridView_Project.DataBind();
        }