62,041
社区成员
发帖
与我相关
我的任务
分享
public DataSet CheckLogin( string strUserName,string strPassword)
{
SqlConnection conn = Conn();
conn.Open();
string strStaffName = "'" + strUserName + "'";
string strStaffPsw = "'" + strPassword + "'";
string strSql = "select UserID,UPassword,UserName,GroupID,InputID from CompanyStaff Where UserName = " + strStaffName + " and UPassword =" + strStaffPsw + "";
SqlDataAdapter dt = new SqlDataAdapter(strSql,conn);
DataSet ds = new DataSet();
dt.Fill(ds);
conn.Close();
return ds;
}
if (password == strPassword)
{
if (inputID == "0")
{
Response.Redirect("Input.aspx");
}
else
{
Response.Redirect("CustomerUser.aspx");
}
}