myBook.Web/pay.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myBook.BLL;


public partial class pay : System.Web.UI.Page
{

    orderBLL oBll = new orderBLL();
    cartBLL cbll = new cartBLL();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["orderNum"] != null)
            {
                this.HFOder.Value = Request.QueryString["orderNum"].ToString();
            }
        }
    }

    /// <summary>
    /// 取消
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("Index.aspx");
    }

    /// <summary>
    /// 确定
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Button1_Click(object sender, EventArgs e)
    {
        bool i = oBll.UpdateAress(this.HFOder.Value);
        cbll.UpdatePay(loginSession.loginInfo.session().Id);
        if (i == true)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "<script>alert('支付成功,请等待卖家发货'); window.location.href='myOrder.aspx'</script>");
            return;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。