protected void Page_Load(object sender, EventArgs e) { chkLoginLevel("editCardGame"); //取得栏目传参 if (int.TryParse(Request.Params["id"], out id) && int.TryParse(Request.Params["cid"], out cid)) { modelExtend = bllExtend.GetModel(id); model = bll.GetModelbyChanelID(int.Parse(modelExtend.ChanelID.ToString()), int.Parse(modelExtend.gameID.ToString())); if (!Page.IsPostBack) { ShowInfo(); if (model != null) { hdID.Value = model.ID.ToString(); this.txtCardName.Text = model.CardName; this.ddlCardType.SelectedValue = model.CardType; this.ddlStatus.Text = model.Status; } } } else { JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改主键不明确或参数不正确。", "back", "Error"); } }
protected void Page_Load(object sender, EventArgs e) { if (int.TryParse(Request.Params["id"], out id) && int.TryParse(Request.Params["cid"], out cid)) { model = bll.GetModel(id); if (!Page.IsPostBack) { //ShowInfo(); } } else { JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改主键不明确或参数不正确。", "back", "Error"); } }
protected void Page_Load(object sender, EventArgs e) { //取得栏目传参 Verifycode = Request.Params["vc"]; if (int.TryParse(Request.Params["id"], out id)) { model = bll.GetModel(id); //model.Bak1 = "http://downali.game.uc.cn/wm/0/16/51117175955_skzhv1.0.5_UCv3.5.3.1_3000zhengshi_3621104_132311a58e9d.apk"; if (model.Verifycode != null && model.Verifycode.Equals(Verifycode) && !string.IsNullOrEmpty(model.Bak1)) { Response.Redirect(model.Bak1); } } Response.Write("资源不存在"); }
protected void Page_Load(object sender, EventArgs e) { chkLoginLevel("editChannel"); //取得栏目传参 if (int.TryParse(Request.Params["id"], out id) && int.TryParse(Request.Params["cid"], out cid)) { model = bll.GetModel(id); if (!Page.IsPostBack) { TreeBind(); PChanelBind(""); PgameBind(model.gameName,""); ShowInfo(); } } else { JscriptMsg(350, 230, "错误提示", "<b>出现错误啦!</b>您要修改主键不明确或参数不正确。", "back", "Error"); } }