protected void Page_Load(object sender, EventArgs e) { CompanyId = Request.QueryString["cid"]; TabIndex = Request.QueryString["st"]; type = (SeniorOnlineShop.master.SPOTT1TAB)Enum.Parse(typeof(SeniorOnlineShop.master.SPOTT1TAB), TabIndex); StrTitle = EyouSoft.Common.Utils.GetQueryStringValue("title").Trim(); CurrencyPage = StringValidate.GetIntValue(Request.QueryString["Page"], 1); InitPage(); }
protected void Page_Load(object sender, EventArgs e) { CompanyId = ((SeniorOnlineShop.master.ScenicSpotsT1)base.Master).CompanyId; TabIndex = Request.QueryString["st"]; if (string.IsNullOrEmpty(TabIndex)) { Response.Redirect("Default.aspx?cid=" + CompanyId); } else { //导航样式制定 type = (SeniorOnlineShop.master.SPOTT1TAB)Enum.Parse(typeof(SeniorOnlineShop.master.SPOTT1TAB), TabIndex); if (type == SeniorOnlineShop.master.SPOTT1TAB.景区攻略) { ltrGL.Visible = true; dplType.Visible = true; dplType.Items.Insert(0, new ListItem("请选择", "")); dplType.Items.Insert(1, new ListItem("攻略", ((int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区攻略).ToString())); dplType.Items.Insert(2, new ListItem("美食", ((int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区美食).ToString())); dplType.Items.Insert(3, new ListItem("住宿", ((int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区住宿).ToString())); dplType.Items.Insert(4, new ListItem("交通", ((int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区交通).ToString())); dplType.Items.Insert(5, new ListItem("购物", ((int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区购物).ToString())); if (!string.IsNullOrEmpty(Request.QueryString["gl"]) && Request.QueryString["gl"] != "undefined") { int itemVal = Utils.GetInt(Request.QueryString["gl"], (int)EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType.景区攻略); dplType.Items.FindByValue(itemVal.ToString()).Selected = true; } } ((SeniorOnlineShop.master.ScenicSpotsT1)base.Master).CTAB = type; if (TabIndex == "0") { TabName = "景区线路"; } else { TabName = Enum.GetName(typeof(SeniorOnlineShop.master.SPOTT1TAB), (int)type); } } if (!IsPostBack) { InitPage(); } }
protected void Page_Load(object sender, EventArgs e) { //导航样式制定 TabIndex = Request.QueryString["st"]; CompanyId = ((SeniorOnlineShop.master.ScenicSpotsT1)base.Master).CompanyId; if (string.IsNullOrEmpty(TabIndex)) { Response.Redirect("/scenicspots/T1/Default.aspx?cid=" + CompanyId); } else { type = (SeniorOnlineShop.master.SPOTT1TAB)Enum.Parse(typeof(SeniorOnlineShop.master.SPOTT1TAB), TabIndex); ((SeniorOnlineShop.master.ScenicSpotsT1)base.Master).CTAB = type; } if (!IsPostBack) { InitPage(); } }