“Leyp.SQLServerDAL.SQLHelper”的类型初始值设定项引发异常。
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingS...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Leyp.Components;
using Leyp.Model.View;
using Leyp.SQLServerDAL;
using Leyp.Components.Module;
using Leyp.Model;
public partial class Login : System.Web.UI.Page
{
protected void LoginButton_Click(object sender, ImageClickEventArgs e)
{
UserDAL bs = new UserDAL();
string userName = StrHelper.ConvertSql(UserName.Text.ToString());
string userPwd = StrHelper.EncryptPassword(PassWord.Text.ToString(), StrHelper.PasswordType.MD5);
if(bs.isLoginValidate (userName,userPwd))
{
Leyp.Model.User s=bs.getByUserName(userName);
SessionUser ss = new SessionUser();
ss.UserName = s.UserName;
ss.TypeID = s.TypeID;
ss.SubClassID = s.SubClassID;
ss.GroupID = s.GroupID;
Leyp.Components.Module.BaseLogin.SetSession(ss);//保存Session
new BasePage().addSystemLog("登录进入系统");
Response.Redirect("Index.aspx");
}
如题,登陆if(bs.isLoginValidate (userName,userPwd))这一行就出现错误,这是什么问题?小白求教 展开
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Leyp.Components;
using Leyp.Model.View;
using Leyp.SQLServerDAL;
using Leyp.Components.Module;
using Leyp.Model;
public partial class Login : System.Web.UI.Page
{
protected void LoginButton_Click(object sender, ImageClickEventArgs e)
{
UserDAL bs = new UserDAL();
string userName = StrHelper.ConvertSql(UserName.Text.ToString());
string userPwd = StrHelper.EncryptPassword(PassWord.Text.ToString(), StrHelper.PasswordType.MD5);
if(bs.isLoginValidate (userName,userPwd))
{
Leyp.Model.User s=bs.getByUserName(userName);
SessionUser ss = new SessionUser();
ss.UserName = s.UserName;
ss.TypeID = s.TypeID;
ss.SubClassID = s.SubClassID;
ss.GroupID = s.GroupID;
Leyp.Components.Module.BaseLogin.SetSession(ss);//保存Session
new BasePage().addSystemLog("登录进入系统");
Response.Redirect("Index.aspx");
}
如题,登陆if(bs.isLoginValidate (userName,userPwd))这一行就出现错误,这是什么问题?小白求教 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询