示例#1
0
文件: uniteserver.cs 项目: tbs005/---
        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>");
        }
示例#2
0
        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>");
        }