MikeKovach
02-21-2005, 06:26 AM
How can I reference the _database directory in the web.config so I do not have to always reference the _database directly.
What I'm thinking about is somthing like the following:
<appSettings>
<add key="NWind"
value="Provider=Microsoft.Jet.OleDb.4.0; data source=<server drive letter>:\\web\\<sitename> \\htdocs\\_database\\Northwind.mdb;";/ ('file://\\htdocs\\_database\\Northwind.mdb;";/')>
</appSettings>
Then in the connect string I would simply have to put the following:
String strConnection = ConfigurationSettings.AppSettings["NWind"];
What I'm thinking about is somthing like the following:
<appSettings>
<add key="NWind"
value="Provider=Microsoft.Jet.OleDb.4.0; data source=<server drive letter>:\\web\\<sitename> \\htdocs\\_database\\Northwind.mdb;";/ ('file://\\htdocs\\_database\\Northwind.mdb;";/')>
</appSettings>
Then in the connect string I would simply have to put the following:
String strConnection = ConfigurationSettings.AppSettings["NWind"];