我说我连个登录代码都不会写,你们会不会让我去死
妹子很辛酸。。。啥也不说了。。。。
问题关键字:ASP.NET,登录,三层架构,代码
写了好几个都错了...T_T..。看图,
asp.net?三层架构 asp.net 三层架构
[解决办法]
手写好累
public bool CheckTeacherExistence(string name,string pwd)
{
...
string sql = "select count(*) from Teacher where TeacherName=" + name + " and TeacherPwd=" + pwd;
...
}
public bool CheckTeacherExistence(string name,string pwd)
{
return adminData.CheckTeacherExistence(name,pwd);
}
if(adminBusiness.CheckTeacherExistence(teacherName,teacherPwd))
{
.......
}