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