private void client_GetArchivesCompleted(object sender, GetArchivesCompletedEventArgs e) { try { loadbar.Stop(); if (e.Result != null) { BindDataGrid(e.Result.ToList(), e.pageCount); } else { BindDataGrid(null, 0); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }