Пример #1
0
		/// <summary>
		/// Saves the Users Dataset
		/// </summary>
		/// <param name="u">Users Dataset</param>
		public static void SetUsers(Users u)
		{
            if (null == u)
                throw new ArgumentNullException("u");

			u.WriteXml(Config.UserListPhysicalPath);
			System.Web.HttpContext.Current.Cache.Remove("Users");
		}
		internal void BindGrid()
		{
			roleList = UserManagement.Users;
			gridRoles.DataSource = roleList.Role;
			gridRoles.DataBind();
		}
		protected override void LoadViewState(object bag)
		{
			base.LoadViewState(bag);
			roleList = (Users)ViewState["RoleList"];
		}
Пример #4
0
		public override void BindGrid()
		{
			userList = UserManagement.Users;
			gridUsers.DataSource = userList;
			gridUsers.DataBind();
		}