日期:2014-05-18 浏览次数:21132 次
public bool isuserlogin(string upassword) //检测用户是否登入
{
try
{
getConnection getCon = new getConnection();
oledCon = getCon.OledCon();
oledCon.Open();
string strAdd = String.Format("select uloginstate from T_user where upassword='{0}'", upassword.Trim());
oledcmd = new OleDbCommand(strAdd, oledCon);
oleRed = oledcmd.ExecuteReader();
return oleRed;
}
catch (Exception ex)
{
MessageBox.Show(ee.Message.ToString());
return oleRed;
}
}