前台:
后台:protected void Pas_Change_Click(object sender, EventArgs e)
{
if (Cur_Pas.Text == teacher.password)
{
if (New_Pas.Text == Input_Again.Text)
{
teacher.password = New_Pas.Text;
if (bllteacher.Update(teacher) == 1)
{
ClassJs.Alert("修改密码成功!", this);
}
else
{
ClassJs.Alert("密码修改失败,请重新输入!", this);
}
}
else
{
ClassJs.Alert("您两次输入的新密码不相同,请重新输入!", this);
}
}
else
{
ClassJs.Alert("您输入的密码错误,请重新输入", this);
}
}
大神们帮帮忙,我刚开始学习
回复讨论(解决方案)
你先看密码有没有传到后台,然后你还得调试后台代码看看bllteacher.Update(teacher)返回的是什么,sql脚本有没有问题!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn