public void UpdateUI() { UserRowData userRow = UserGridPanel.SelectedUser; if (userRow == null) { // no device being selected EditUserButton.Enabled = false; DeleteUserButton.Enabled = false; ResetPasswordButton.Enabled = false; } else { EditUserButton.Enabled = true; DeleteUserButton.Enabled = true; ResetPasswordButton.Enabled = true; } // UpdatePanel UpdateMode must be set to "conditional" // Calling UpdatePanel.Update() will force the client to refresh the screen UserGridPanel.RefreshCurrentPage(); SearchUpdatePanel.Update(); }
protected void SearchButton_Click(object sender, ImageClickEventArgs e) { UserGridPanel.Refresh(); }