Hi everyone,
I want to build a simple asp.net page that saves the form data into an access database. I opened the database like this:
I copied the connection string from the properties of the connection in the server explorer.
I didn't put any passwords in the access database. I put the access file in system32 folder because it is the only place the program could find it.
When I opened the page, there was an error that said the access file is already opened or I don't have an access to view its data.
When I tried to do this in a c# application without asp, it worked fine!
Is there something diferrent in asp than c# working with ado?
Thanks
I want to build a simple asp.net page that saves the form data into an access database. I opened the database like this:
Code:
this.db = new System.Data.OleDb.OleDbConnection();
this.db.ConnectionString = @"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Database Password=;Data Source=""Mishmar.mdb"";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False";
db.open();
I copied the connection string from the properties of the connection in the server explorer.
I didn't put any passwords in the access database. I put the access file in system32 folder because it is the only place the program could find it.
When I opened the page, there was an error that said the access file is already opened or I don't have an access to view its data.
When I tried to do this in a c# application without asp, it worked fine!
Is there something diferrent in asp than c# working with ado?
Thanks