日期:2014-05-18 浏览次数:21055 次
string ip = textBox2.Text; OleDbConnection coon = new OleDbConnection("Provider=MS Remote;Remote Server=http://"+ip+";Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=F:\\zhao-作业\\c# 作业1\\SZqq_sever\\SZqq_sever\\bin\\Debug\\SZqq用户登记库.mdb," + "admin," + ""); coon.Open(); string sql; OleDbDataReader dr; sql = "select * from user_mes"; OleDbCommand mycomm = new OleDbCommand(sql, coon); dr = mycomm.ExecuteReader(); while (dr.Read()) { string mima = dr["user_n"].ToString(); string miwen = dr["mima"].ToString(); textBox1.Text = mima + miwen; } dr.Close();