protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e) { MemberBL memBL = new MemberBL(); if (e.CommandName == "orderDel") { if (memBL.order_Del(e.CommandArgument.ToString()) > 0) { Response.Write("<script>alert('取消訂單成功');</script>"); GridView2.DataSource = memBL.order_select(HttpContext.Current.Server.UrlDecode(cookie.Values["mID"].ToString())); GridView2.DataBind(); } } }