/// <summary> /// 选择某一个微信公众帐号,并且将其保存到session里 /// </summary> /// <param name="source"></param> /// <param name="e"></param> protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { switch (e.CommandName) { case "toIndex": { int wid = int.Parse(e.CommandArgument.ToString()); Model.wx_userweixin weixin = bll.GetModel(wid); Session["nowweixin"] = weixin; Utils.WriteCookie("nowweixinId", "MxWeiXinPF", e.CommandArgument.ToString()); Response.Write("<script>parent.location.href='/admin/index.aspx'</script>"); } break; case "delete": { int wid = int.Parse(e.CommandArgument.ToString()); BLL.wx_userweixin bll = new BLL.wx_userweixin(); bll.Delete(wid); JscriptMsg("删除公众号成功!", "?", "Success"); } break; } }
/// <summary> /// 选择某一个微信公众帐号,并且将其保存到session里 /// </summary> /// <param name="source"></param> /// <param name="e"></param> protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { switch (e.CommandName) { case "toIndex": { int wid = int.Parse(e.CommandArgument.ToString()); Model.wx_userweixin weixin = bll.GetModel(wid); Session["nowweixin"] = weixin; Utils.WriteCookie("nowweixinId", "WechatBuilder", e.CommandArgument.ToString()); Response.Write("<script>parent.location.href='/admin/index.aspx'</script>"); } break; case "delete": { int wid = int.Parse(e.CommandArgument.ToString()); BLL.wx_userweixin bll = new BLL.wx_userweixin(); bll.Delete(wid); JscriptMsg("删除公众号成功!", "?", "Success"); } break; } }