private void UpdateIsDownLoad() { if (!string.IsNullOrEmpty(base.Request.QueryString["oper"]) && base.Request.QueryString["oper"].Trim() == "update" && !string.IsNullOrEmpty(base.Request.QueryString["GiftId"]) && !string.IsNullOrEmpty(base.Request.QueryString["Status"]) && int.Parse(base.Request.QueryString["GiftId"].Trim()) > 0 && int.Parse(base.Request.QueryString["Status"].Trim()) >= 0) { int giftId = int.Parse(base.Request.QueryString["GiftId"]); bool isdownload = false; string str = "取消"; if (int.Parse(base.Request.QueryString["Status"].Trim()) == 1) { isdownload = true; str = "允许"; } if (GiftHelper.UpdateIsDownLoad(giftId, isdownload)) { this.BindData(); this.ShowMsg(str + "当前礼品下载成功!", true); return; } this.ShowMsg(str + "当前礼品下载失败!", false); } }