protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ApplicationFolderPermissionTester testPermission = new ApplicationFolderPermissionTester(_testFolders); uxPermissionGrid.DataSource = testPermission.CreateTestFolderTable(false); uxPermissionGrid.DataBind(); } }
protected void uxVerifyButton_Click(object sender, EventArgs e) { ApplicationFolderPermissionTester testPermission = new ApplicationFolderPermissionTester(_testFolders); bool permissionPassFlag = true; uxPermissionGrid.DataSource = testPermission.CreateTestFolderTable(true, out permissionPassFlag); uxPermissionGrid.DataBind(); if (permissionPassFlag) { uxNextButton.Enabled = true; } else { uxFilePermissionTestMessage.DisplayErrorNoNewLine(this.GetLocalResourceObject("PermissionFail.ErrorMessage").ToString()); uxNextButton.Enabled = false; } }