예제 #1
0
 protected void RGRole_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     try
     {
         RGRole.DataSource = (DataTable)Session["dtRoleManage"];
         RGRole.DataBind();
     }
     catch (Exception ex)
     {
     }
 }
예제 #2
0
        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)
            {
            }
        }