private void MyBind() { DataTable dt = perBll.Select_All(); EGV.DataSource = dt; EGV.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { ZoomLa.Common.function.AccessRulo(); B_Admin badmin = new B_Admin(); string KeyWord = Request.Form["TxtKeyWord"]; string KeyWords = Request.QueryString["KeyWord"]; if (string.IsNullOrEmpty(KeyWord) && !string.IsNullOrEmpty(KeyWords)) { KeyWord = KeyWords; } DataTable perminfo = pll.Select_All(); if (!string.IsNullOrEmpty(KeyWord)) { perminfo = pll.SelByRole(KeyWord); } Page_list(perminfo); }