D
Dan Sikorsky
How do you use server.mappath to update a access database on a completely
different computer? One of my websites needs to update a database on a
completely different website.
Example:
My ASP page is on http://www.websiteone.com and I want to update the
database on http://www.websitetwo.com
// where is the Access database?
var sDBPath = Server.MapPath ( 'http://www.websitetwo.com/data/DB.mdb' );
// make up the connection string
var sConnectionString = 'Provider=Microsoft.Jet.OLEDB.4.0; ';
sConnectionString += 'Data Source=' + sDBPath;
When connecting, I get a "An invalid character was specified in the Path
parameter for the MapPath method" error message.
different computer? One of my websites needs to update a database on a
completely different website.
Example:
My ASP page is on http://www.websiteone.com and I want to update the
database on http://www.websitetwo.com
// where is the Access database?
var sDBPath = Server.MapPath ( 'http://www.websitetwo.com/data/DB.mdb' );
// make up the connection string
var sConnectionString = 'Provider=Microsoft.Jet.OLEDB.4.0; ';
sConnectionString += 'Data Source=' + sDBPath;
When connecting, I get a "An invalid character was specified in the Path
parameter for the MapPath method" error message.