protected void Page_Load(object sender, EventArgs e) { sqlh = new SQLHelper(); strDBConn=sqlh.ConnString; string strRefreshInv = (Request.QueryString["RefreshInv"] != null) ? Request.QueryString["RefreshInv"].ToString().Replace("\"", "").Trim() : "0"; if (strRefreshInv != "0") { try { iRefreshInv = Convert.ToInt32(strRefreshInv); if (iRefreshInv < 1) iRefreshInv = 0; } catch { iRefreshInv = 0; } } if (iRefreshInv > 0) { strRefresh = "<meta http-equiv=\"refresh\" content=\"" + iRefreshInv.ToString() + "\">"; } //strPageID = Session["PageID"].ToString(); //strPageID = Request.QueryString["PageID"].ToString(); strPageID = (Request.QueryString["PageID"] != null) ? Request.QueryString["PageID"].ToString().Replace("\"", "").Trim() : ""; strLine = (Request.QueryString["Line"] != null) ? Request.QueryString["Line"].ToString().Replace("\"", "").Trim() : ""; strModel = (Request.QueryString["Model"] != null) ? Request.QueryString["Model"].ToString().Replace("\"", "").Trim() : ""; strProjectID = (Request.QueryString["ProjectID"] != null) ? Request.QueryString["ProjectID"].ToString().Replace("\"", "").Trim() : ""; //strActiveLine = (Request.QueryString["ActiveLine"] != null) ? Request.QueryString["ActiveLine"].ToString().Replace("\"", "").Trim().ToLower() : "0"; //if (!IsPostBack) //{ // btnSave.Attributes.Add("onmouseover", "this.src='Images/Save1_1.gif'"); // btnSave.Attributes.Add("onmouseout", "this.src='Images/Save1.gif'"); //} }
protected void Page_Load(object sender, EventArgs e) { sqlh = new SQLHelper(); strDBConn = sqlh.ConnString; string strRefreshInv = (Request.QueryString["RefreshInv"] != null) ? Request.QueryString["RefreshInv"].ToString().Replace("\"", "").Trim() : "0"; if (strRefreshInv != "0") { try { iRefreshInv = Convert.ToInt32(strRefreshInv); if (iRefreshInv < 1) { iRefreshInv = 0; } } catch { iRefreshInv = 0; } } if (iRefreshInv > 0) { strRefresh = "<meta http-equiv=\"refresh\" content=\"" + iRefreshInv.ToString() + "\">"; } //strPageID = Session["PageID"].ToString(); //strPageID = Request.QueryString["PageID"].ToString(); strPageID = (Request.QueryString["PageID"] != null) ? Request.QueryString["PageID"].ToString().Replace("\"", "").Trim() : ""; strLine = (Request.QueryString["Line"] != null) ? Request.QueryString["Line"].ToString().Replace("\"", "").Trim() : ""; strModel = (Request.QueryString["Model"] != null) ? Request.QueryString["Model"].ToString().Replace("\"", "").Trim() : ""; strProjectID = (Request.QueryString["ProjectID"] != null) ? Request.QueryString["ProjectID"].ToString().Replace("\"", "").Trim() : ""; //strActiveLine = (Request.QueryString["ActiveLine"] != null) ? Request.QueryString["ActiveLine"].ToString().Replace("\"", "").Trim().ToLower() : "0"; //if (!IsPostBack) //{ // btnSave.Attributes.Add("onmouseover", "this.src='Images/Save1_1.gif'"); // btnSave.Attributes.Add("onmouseout", "this.src='Images/Save1.gif'"); //} }