예제 #1
0
        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();
        }
예제 #2
0
 protected void SearchButton_Click(object sender, ImageClickEventArgs e)
 {
     UserGridPanel.Refresh();
 }