protected void RGRole_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { try { RGRole.DataSource = (DataTable)Session["dtRoleManage"]; RGRole.DataBind(); } catch (Exception ex) { } }
private void BindRole(string CampusID) { try { DataTable dtRoleManage = new DataTable(); dtRoleManage = DataAccessManager.GetRoleUserRight(CampusID); Session["dtRoleManage"] = dtRoleManage; RGRole.DataSource = (DataTable)Session["dtRoleManage"]; RGRole.DataBind(); } catch (Exception ex) { } }