示例#1
0
        //submit data
        void but1_Click(object sender, EventArgs e)
        {
            String  error = String.Empty;
            Control con1  = JControl.CheckControls(new Control[] { this.pass1, this.pass2, this.oldpass }, out error);

            if (con1 != null)
            {
                UTools.AlertAndFocusControl(error, con1.ClientID);
            }
            else
            {
                JUserBU bu1 = new JUserBU();
                error = bu1.ChangeOldPassWord(this.oldpass.Text, this.pass1.Text);
                if (String.IsNullOrEmpty(error))
                {
                    UTools.Alert("提示:密码修改成功,下次登录生效!");
                }
                else
                {
                    UTools.Alert(error);
                }
            }
        }