protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["type"] != null) { string lPaymentStatus = "Order Accepted"; string lPaymentStatus1 = lPaymentStatus; if (Request.QueryString["type"].ToString() == "2") { lPaymentStatus = "Waiting for Refund Approval"; lPaymentStatus1 = lPaymentStatus; } else if (Request.QueryString["type"].ToString() == "3") { lPaymentStatus = "Shipped"; lPaymentStatus1 = lPaymentStatus; } else if (Request.QueryString["type"].ToString() == "4") { lPaymentStatus = "Refund Initiated"; lPaymentStatus1 = lPaymentStatus; } else if (Request.QueryString["type"].ToString() == "5") { lPaymentStatus = "Payment Failed"; lPaymentStatus1 = "Open"; } else if (Request.QueryString["type"].ToString() == "6") { lPaymentStatus = "Open"; lPaymentStatus1 = lPaymentStatus; } else if (Request.QueryString["type"].ToString() == "7") { lPaymentStatus = "Order Delivered"; lPaymentStatus1 = lPaymentStatus; } OrderGrid1.Load_Orders(lPaymentStatus, lPaymentStatus1); } }
protected void Search_Order_Button_Click(object sender, EventArgs e) { OrderGrid1.Order_Id = Server.HtmlEncode(Order_Id.Text); OrderGrid1.Search_Order(); }