protected void Button1_Click(object sender, EventArgs e) { //Maticsoft.BLL.weixin wx_bll = new BLL.weixin(); //string result = wx_bll.update_remark(wx_u_mod.openid, wx_bll.get_accesstoken(), name.Text); //Response.Write("<script>alert('" + result + "!');</script>"); Maticsoft.Model.member mem_mod = new Model.member(); mem_mod.openid = wx_u_mod.openid; mem_mod.name = name.Text.Trim(); mem_mod.time = DateTime.Now; mem_mod.peixunban_id = Convert.ToInt16(qishu.SelectedValue); mem_mod.name2 = wx_u_mod.nickname; Maticsoft.BLL.member mem_bll = new BLL.member(); string str = mem_bll.updatedata(mem_mod); if (str == "更新成功" || str == "插入成功") { //Session["name"] = mem_mod.name; //Response.Write("<script>alert('退出系统后重新进入!')</script>"); Response.Write("<script>alert('" + str + "!');window.location='index.aspx'</script>"); } else { //Response.Write("<script>alert('退出系统后重新进入!')</script>"); Response.Write("<script>alert('" + str + "!')/script>"); } }
protected void Button1_Click(object sender, EventArgs e) { Maticsoft.Model.member mem_mod = new Model.member(); mem_mod.openid = Session["open_id"].ToString(); mem_mod.name = TextBox1.Text.Trim(); mem_mod.time = DateTime.Now; mem_mod.style = "2"; Maticsoft.BLL.member mem_bll = new BLL.member(); string str = mem_bll.updatedata(mem_mod); Response.Write("<script>alert('" + str + ",我们会尽快与您确认信息')</script>"); }