"data Source=?" to access my website database
-
static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb"); OleDbConnection cn=new OleDbConnection(conn); the above statement giving the below error: Error showing:- 'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected please suggest me how to change the code www.mywebsite.com/data/db1.mdb please write the connection string for the above website to locate db1.mdb i will be thank full to you if you reply. thank u multimedia9
-
static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb"); OleDbConnection cn=new OleDbConnection(conn); the above statement giving the below error: Error showing:- 'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected please suggest me how to change the code www.mywebsite.com/data/db1.mdb please write the connection string for the above website to locate db1.mdb i will be thank full to you if you reply. thank u multimedia9
Look at the various connection strings at http://www.connectionstrings.com[^], and I'd bookmark the mentioned site for future reference :-D
"That's no moon, it's a space station." - Obi-wan Kenobi