日期:2014-05-18 浏览次数:20433 次
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("./app_data/design.mdb"));//建立数据库连接 OleDbCommand cmd = new OleDbCommand(); OleDbDataReader oledatareader; conn.Open(); cmd.Connection = conn; cmd.CommandText =
Session["username"]=oledatareader["username"].ToString();
------解决方案--------------------
session["id"]=reader["id"].tostring()