protected void Page_Load(object sender, EventArgs e) { string strInfoidList = ""; if (Request.QueryString["InfoIDList"] != null && Request.QueryString["InfoIDList"].ToString().Trim() != "") { strInfoidList = Request.QueryString["InfoIDList"].ToString().Trim(); string[] arr = FormatDh(strInfoidList, ",").Split(','); string loginname = Page.User.Identity.Name; if (loginname == "") { Response.Redirect("http://member.topfo.com/login.aspx?ReturnURL=" + Request.Url.ToString()); return; } Tz888.BLL.Pay dal = new Tz888.BLL.Pay(); try { int iCount = 0; for (int i = 0; i < arr.Length; i++) { if (dal.ShopCar_Add(Convert.ToInt64(arr[i].ToString().Trim()), loginname)) { iCount += 1; } } if (iCount == arr.Length) { Response.Redirect("trade_info_wait.aspx"); } } catch { Response.Redirect("trade_info_wait.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["InfoID"] != null) { infoID = Convert.ToInt64(Request.QueryString["InfoID"]); } string loginname = Page.User.Identity.Name; if (loginname == "") { Response.Redirect("http://member.topfo.com/login.aspx?ReturnURL=" + Request.Url.ToString()); return; } Tz888.BLL.Pay dal = new Tz888.BLL.Pay(); try { bool b = dal.ShopCar_Add(infoID, loginname); Response.Redirect("trade_info_wait.aspx"); } catch { Response.Redirect("trade_info_wait.aspx"); } }