protected void Page_Load(object sender, EventArgs e) { webAction = Request["Action"]; GetScoreTypeInfo(); if (webAction == "edit") { pid = Convert.ToInt32(Request["pid"]); ProductModel = bll.GetScoreProduct(pid); if (ProductModel == null) { Response.End(); } else { HeadTitle = string.Format("{0}", ProductModel.PName); } } }
protected void Page_Load(object sender, EventArgs e) { try { int Pid = int.Parse(Request["pid"]); model = bllMall.GetScoreProduct(Pid); if (model == null) { Response.End(); } if (model.DiscountScore > 0) { model.Score = model.DiscountScore; } if (bllMall.IsLogin) { currentUserInfo = bllMall.GetCurrentUserInfo(); //if (currentUserInfo.Province==null) //{ // currentUserInfo.Province = "选择省"; //} //if (currentUserInfo.City == null) //{ // currentUserInfo.City = ""; //} //if (currentUserInfo.District == null) //{ // currentUserInfo.District = ""; //} } else { Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}", Request.FilePath + "?pid=" + Request["pid"])); } } catch (Exception) { Response.End(); } }
protected void Page_Load(object sender, EventArgs e) { try { int Pid = int.Parse(Request["pid"]); model = bllMall.GetScoreProduct(Pid); if (model == null) { Response.End(); } if (model.DiscountScore > 0) { model.Score = model.DiscountScore; } model.PV++; bllMall.Update(model); if (!bllMall.IsLogin) { if (bllMall.IsMobile) { if (bllMall.WebsiteOwner.Equals("forbes")) { Response.Redirect("/customize/forbes/#/login"); } else { Response.Redirect(string.Format("/App/Cation/Wap/login.aspx?redirecturl={0}", Request.Url.PathAndQuery.ToString())); } } } } catch (Exception) { Response.End(); } }
protected void Page_Load(object sender, EventArgs e) { try { int Pid = int.Parse(Request["pid"]); model = bllMall.GetScoreProduct(Pid); if (model == null) { Response.End(); } if (bllMall.IsLogin) { currentUserInfo = DataLoadTool.GetCurrUserModel(); } else { Response.Redirect(string.Format("/App/Cation/Wap/Login.aspx?redirecturl={0}", Request.FilePath + "?pid=" + Request["pid"])); } } catch (Exception) { Response.End(); } }