极品菜鸟裸体跪求急待解决!!!!
Personal personal = new Personal() ;
if(usn.Text == " ") Response.Write ( " <script language=javascript> alert( '用户名不能为空 '); </script> ");
else if (pwd.Text == " ") Response.Write( " <script language=javascript> alert( '密码不能为空 '); </script> ");
else
{
personal.Code = usn.Text;
int i = personal.GetPersonalInfo();
if (i!=0)
{ Response.Write( " <script language=javascript> alert( '登陆失败 '); </script> "); return; }
if (personal.CheckPWD(pwd.Text))
{
Session.Add( "Authors ", personal);
}
}
if (personal.ChangePWD(opwd.Text))
{
Session.Add( "Authors ", personal);
Response.Write( " <script language=javascript> alert( '恭喜您密码修改成功 '); </script> ");
}
else
{ Response.Write( " <script language=javascript> alert( '登陆失败 '); </script> "); return; }
}
2个对象分别是这样的``
/// 核对密码
/// </summary>
/// <param name= "PWD "> 要核对的密码串 </param>