密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css
來(lái)源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 16:39:59
密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css
密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css_WEB-ITnose:前臺(tái): 后臺(tái):protected void Pas_Change_Click(object sender, EventArgs e) { if (Cur_Pas.Text == teacher.password) { if (New_Pas.Text == Input_Again.Text) { teacher.pa
導(dǎo)讀密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css_WEB-ITnose:前臺(tái): 后臺(tái):protected void Pas_Change_Click(object sender, EventArgs e) { if (Cur_Pas.Text == teacher.password) { if (New_Pas.Text == Input_Again.Text) { teacher.pa

前臺(tái):
后臺(tái):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("密碼修改失敗,請(qǐng)重新輸入!", this);
}
}
else
{
ClassJs.Alert("您兩次輸入的新密碼不相同,請(qǐng)重新輸入!", this);
}
}
else
{
ClassJs.Alert("您輸入的密碼錯(cuò)誤,請(qǐng)重新輸入", this);
}
}
大神們幫幫忙,我剛開(kāi)始學(xué)習(xí)
回復(fù)討論(解決方案)
你先看密碼有沒(méi)有傳到后臺(tái),然后你還得調(diào)試后臺(tái)代碼看看bllteacher.Update(teacher)返回的是什么,sql腳本有沒(méi)有問(wèn)題!
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css
密碼修改不能實(shí)現(xiàn),大神們快來(lái)看看_html/css_WEB-ITnose:前臺(tái): 后臺(tái):protected void Pas_Change_Click(object sender, EventArgs e) { if (Cur_Pas.Text == teacher.password) { if (New_Pas.Text == Input_Again.Text) { teacher.pa