protected void cmdView_Click1(object sender, ImageClickEventArgs e) { DataTable nTable = Roles_Data.GetList(txtSearch.Text); GV_Roles.DataSource = nTable; GV_Roles.DataBind(); }
protected void OnPaging(object sender, GridViewPageEventArgs e) { GV_Roles.PageIndex = e.NewPageIndex; DataTable nTable = Roles_Data.GetList(txtSearch.Text); GV_Roles.DataSource = nTable; GV_Roles.DataBind(); }
public void LoadData() { DataTable nTable = Roles_Data.GetList(""); GV_Roles.DataSource = nTable; GV_Roles.DataBind(); DateTime dt = DateTime.Now; }
protected void GrDelete(object sender, CommandEventArgs e) { try { string mKey = e.CommandArgument.ToString(); Role_Info info = new Role_Info(mKey); info.Delete(); DataTable nTable = Roles_Data.GetList(txtSearch.Text); GV_Roles.DataSource = nTable; GV_Roles.DataBind(); } catch { Response.Write("<script >alert('Có lỗi gì đó vui lòng thử lại!')</script>"); } }