源码:
string searchText = this.TextBox3.Text;
StringBuilder sb = new StringBuilder();
sb.Append("select * from UpLoad where Resourse_Title like '%");
sb.Append(searchText);
sb.Append("%'or Resourse_JianJie like '%");
sb.Append(searchText);
sb.Append("%'");
OleDbConnection conn = new OleDbConnection();
conn.ConnectionString = "Provider = Microsoft.JET.OleDb.4.0;Data Source=CHANGSHA-DB5D6B;Initial Catalog=User_Iformations;Integrated Security=True";
conn.Open();
OleDbCommand cmd = new OleDbCommand(sb.ToString(), conn);
OleDbDataReader da = cmd.ExecuteReader();
this.Repeater1.DataSource = da;
this.Repeater1.DataBind();
da.Dispose();
conn.Close();
错误源:行 128: conn.Open();
请高手,,,求解,,纠结、、、、、、、
open错误就是你的连接字符串无法连接到服务器,再查查又没写错,或者链路是不是通的。
报什么错啊?