private void Submit1_ServerClick(object sender, EventArgs e) { if (this.DropDownList1.Items.Count == 0) { base.Response.Write("<script language=javascript>alert(\"請先創建遊戲角色再來購買唷\")</script>"); } else { int chaidxs = int.Parse(this.DropDownList1.SelectedValue); int useridx = int.Parse(this.Session["useridx"].ToString()); string str = new WebLogic().buyitem(this.Session["userid"].ToString(), useridx, chaidxs, itemid, p, g, this.isbb); base.Response.Write("<script language=javascript>alert('" + str + "')</script>"); } }
private void btnmodify_Click(object sender, EventArgs e) { string str = ""; if (this.tbverifycode.Text != this.Session["VerifyCode"].ToString()) { str = "驗證碼錯誤!"; } else { system system = new system(); string userid = system.ChkSql(this.tbuserid.Text.ToString()); string userpwd = system.ChkSql(this.tbolduserpwd.Text.ToString()); string server = "Web_UniteServer" + this.DropDownList2.SelectedValue.ToString(); str = new WebLogic().uniteserver(userid, userpwd, server); } base.Response.Write("<script language=javascript>alert('" + str + "')</script>"); }
private void btnmodify_Click(object sender, EventArgs e) { string str = ""; if (this.tbverifycode.Text != this.Session["VerifyCode"].ToString()) { str = "驗證碼錯誤!"; } else { system system = new system(); string userid = system.ChkSql(this.tbuserid.Text.ToString()); string userpwd = system.ChkSql(this.tbuserpwd.Text.ToString()); string olduserid = system.ChkSql(this.tbolduserid.Text.ToString()); string olduserpwd = system.ChkSql(this.tbolduserpwd.Text.ToString()); string newchaname = system.ConvertToBig5(system.ChkSql(this.tbnewchaname.Text.ToString()), 0x3a8); string oldchaname = system.ConvertToBig5(system.ChkSql(this.tboldchaname.Text.ToString()), 0x3a8); str = new WebLogic().uniteguild(userid, userpwd, newchaname, olduserid, olduserpwd, oldchaname); } base.Response.Write("<script language=javascript>alert('" + str + "')</script>"); }