前边2解决了,现在主要是操作access库时候有问题:
Line 86: String SQLII="update Student set pictures='" + "IMG" + filecont + file_type + "' where (studentID='" + sss +"')";
Line 87: OleDbCommand myCmdII = new OleDbCommand(SQLII, myConn);
Line 88: myCmdII.ExecuteReader();
Line 89: Response.Write("<a href='webform2.aspx'>BACK</a>");
Line 90: DropDownList1.Visible=false; Source File: D:\Inetpub\wwwroot\AAA_Liujw\Riduwan\WebApplication9\WebForm2.aspx Line: 88
Line 86: String SQLII="update Student set pictures='" + "IMG" + filecont + file_type + "' where (studentID='" + sss +"')";
Line 87: OleDbCommand myCmdII = new OleDbCommand(SQLII, myConn);
Line 88: myCmdII.ExecuteReader();
Line 89: Response.Write("<a href='webform2.aspx'>BACK</a>");
Line 90: DropDownList1.Visible=false; Source File: D:\Inetpub\wwwroot\AAA_Liujw\Riduwan\WebApplication9\WebForm2.aspx Line: 88
在2000及以下版本,应该没有问题。
但是在XP下面就又这种问题,我曾经遇到过,可能是和Privide版本有关系。
OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +Server.MapPath("dbWebIS.mdb"));
any other way for connection string?
how can I use myCmd.ExecuteNonQuery?
自己看
结贴喽!