密码修改不能实现,大神们快来看看_html/css_WEB-ITnose
前台:
后台: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脚本有没有问题!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.
