private void Get_InfoBySearch() { try { GvInfo.DataSource = GetCodeBySearch(0); GvInfo.DataBind(); } catch { } }
private void GetInfo() { try { GvInfo.DataSource = GetCodeBy(0); GvInfo.DataBind(); } catch { } }
private void Get_Info() { string sql = "select * from [KaoJuan] where KaoJuanName like '%" + TextBox1.Text + "%' "; DataTable dt = DBHelper.GetFillData(sql); if (dt != null && dt.Rows.Count != 0) { GvInfo.DataSource = dt; GvInfo.DataBind(); } }