private void FillMaintenanceGrid() { try { DataTable MaintDataTable = new DataTable(); DataSet ServersDataSet = new DataSet(); MaintDataTable = VSWebBL.ConfiguratorBL.MaintenanceBL.Ins.GetMaintenDataOnServerID(NameTextBox.Text); if (MaintDataTable.Rows.Count > 0) { DataTable dtcopy = MaintDataTable.Copy(); dtcopy.PrimaryKey = new DataColumn[] { dtcopy.Columns["ID"] }; //4/3/2014 NS modified for VSPLUS-138 //Session["MaintServers"] = dtcopy; ViewState["MaintServers"] = dtcopy; MaintWinListGridView.DataSource = MaintDataTable; MaintWinListGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
private void FillMaintServersGridfromSession() { try { DataTable ServersDataTable = new DataTable(); //4/3/2014 NS modified for VSPLUS-138 //if (Session["MaintServers"] != null && Session["MaintServers"] != "") if (ViewState["MaintServers"] != null && ViewState["MaintServers"] != "") { //4/3/2014 NS modified for VSPLUS-138 //ServersDataTable = (DataTable)Session["MaintServers"]; ServersDataTable = (DataTable)ViewState["MaintServers"]; if (ServersDataTable.Rows.Count > 0) { MaintWinListGridView.DataSource = ServersDataTable; MaintWinListGridView.DataBind(); } } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
private void FillMaintServersGridfromSession() { try { DataTable ServersDataTable = new DataTable(); if (Session["MaintServers"] != null && Session["MaintServers"] != "") { ServersDataTable = (DataTable)Session["MaintServers"];//VSWebBL.ConfiguratorBL.DominoPropertiesBL.Ins.GetAllData(); } if (ServersDataTable.Rows.Count >= 0) { MaintWinListGridView.DataSource = ServersDataTable; MaintWinListGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
protected void MaintWinListGridView_SelectionChanged(object sender, EventArgs e) { if (MaintWinListGridView.Selection.Count > 0) { System.Collections.Generic.List <object> Type = MaintWinListGridView.GetSelectedFieldValues("ID"); if (Type.Count > 0) { string ID = Type[0].ToString(); //Mukund: VSPLUS-844, Page redirect on callback try { DevExpress.Web.ASPxWebControl.RedirectOnCallback("MaintenanceWin.aspx?ID=" + ID + ""); Context.ApplicationInstance.CompleteRequest();//Mukund, 05Aug14, VSPLUS-844:Page redirect on callback } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); //throw ex; } } } }