存放数据库文件夹database和文件在同一级目录,运行文件的错误代码如下:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'MyConn' does not exist in the class or namespace 'ASP.editcommandcolumn_aspx'
Source Error:
Line 14: //连接词句
Line 15: string Myconnstring = " Provider=Micorsoft.Jet.LOEDB.4.0; Data Source="+Server.MapPath(".")+" ..\\DataBase\\db1.mdb;";
Line 16: MyConn=new OleDbConnection (MyConnString);
Line 17: MyConn.open();
Line 18:
请帮忙解决,谢谢!!