OleDbConnection conn=new OleDbConnection();
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source="+Server.MapPath(@"\as\asd.mdb");
conn.Open();
string name=Session["UserName"].ToString();
string Str="select UserIpru from login where UserName='"+name+"'";
OleDbDataAdapter da=new OleDbDataAdapter(Str,conn);
DataSet da=new DataSet();
da.Fill(ds,"Lable");
this.lblIpru.Text=ds.Tables["Lable"].Rows[0][0].ToString();
conn.Close();
//红线这个我弄明白什么意思,就搞定了
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source="+Server.MapPath(@"\as\asd.mdb");
conn.Open();
string name=Session["UserName"].ToString();
string Str="select UserIpru from login where UserName='"+name+"'";
OleDbDataAdapter da=new OleDbDataAdapter(Str,conn);
DataSet da=new DataSet();
da.Fill(ds,"Lable");
this.lblIpru.Text=ds.Tables["Lable"].Rows[0][0].ToString();
conn.Close();
//红线这个我弄明白什么意思,就搞定了
Tomorrow is another day! my love..................