//} public void FillWebsphereCellStatusGrid() { DataTable dt = new DataTable(); dt = VSWebBL.DashboardBL.WebsphereBL.Ins.GetWebsphereCellStatus(); WebsphereCellGridview.DataSource = dt; WebsphereCellGridview.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { //if (!IsPostBack) //{ FillWebsphereCellStatusGrid(); if (WebsphereCellGridview.VisibleRowCount > 0) { int index = WebsphereCellGridview.FocusedRowIndex; if (index > -1) { cellvalue = Convert.ToInt32(WebsphereCellGridview.GetRowValues(index, "CellID").ToString()); } } FillWebsphereNodeStatusGrid(); { int index = WebsphereNodesgridview.FocusedRowIndex; if (index > -1) { nodevalue = Convert.ToInt32(WebsphereNodesgridview.GetRowValues(index, "NodeID").ToString()); } } FillWebsphereServersStatusGrid(); DataColumn statuscol = new DataColumn("Status", typeof(string)); statuslist.Columns.Add(statuscol); statuscol = new DataColumn("StatusCount", typeof(int)); statuslist.Columns.Add(statuscol); SetStatusChart(); if (Session["UserPreferences"] != null) { DataTable UserPreferences = (DataTable)Session["UserPreferences"]; foreach (DataRow dr in UserPreferences.Rows) { if (dr[1].ToString() == "WebsphereServerHealth|WebsphereCellGridview") { WebsphereCellGridview.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } if (dr[1].ToString() == "WebsphereServerHealth|WebsphereNodesgridview") { WebsphereNodesgridview.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } if (dr[1].ToString() == "WebsphereServerHealth|Websphereservergridview") { Websphereservergridview.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } } } }