public virtual string GetFieldChecked(object item) { WebDescriptorRowBase row = item as WebDescriptorRowBase; object o = DAGStatusGridView.GetRowValues(row.VisibleIndex, DAGStatusGridView.KeyFieldName); return(Session["FocusedRow"] == o ? "CHECKED" : ""); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack && !IsCallback) { if (Request.QueryString["Type"] != "" && Request.QueryString["Type"] != null) { lblServerType.Text = Request.QueryString["Type"].ToString() + ": "; } if (Request.QueryString["Typ"] != "" && Request.QueryString["Typ"] != null) { lblServerType.Text = Request.QueryString["Type"].ToString(); } if (Request.QueryString["Name"] != "" && Request.QueryString["Name"] != null) { servernamelbl.Text = Request.QueryString["Name"]; } if (Request.QueryString["LastDate"] != "" && Request.QueryString["LastDate"] != null) { Lastscanned.Text = Request.QueryString["LastDate"].ToString(); } else { DataTable dt = VSWebBL.DashboardBL.QuickrHealthBLL.Ins.getLastScanDate(servernamelbl.Text); if (dt.Rows.Count > 0) { Lastscanned.Text = dt.Rows[0]["LastUpdate"].ToString(); } else { lbltext.Visible = false; Lastscanned.Visible = false; } } //7/23/2014 NS modified //DAGID = int.Parse(Request.QueryString["ID"].ToString()); FillDAGStatusGridView(); FillDAGMembersGridView(DAGID); FillDAGDBGridView(DAGID); } Session["FocusedRow"] = DAGStatusGridView.GetRowValues(DAGStatusGridView.FocusedRowIndex, new string[] { DAGStatusGridView.KeyFieldName }); }
public virtual string GetFieldValue(object item) { WebDescriptorRowBase row = item as WebDescriptorRowBase; return(DAGStatusGridView.GetRowValues(row.VisibleIndex, DAGStatusGridView.KeyFieldName).ToString()); }