R
Rich
The following appsetting in web.config works fine if
hardcoded path (dir1 is virtual dir).
<appSettings>
<add key="conn"
value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=d:\dir1
\db\northwind.mdb"/>
</appSettings>
But I would like to make the path dynamic with
Server.MapPath except I don't know how to apply it in
web.config. Is Server.MapPath even supported in
web.config?
<appSettings>
<add key="conn"
value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" +
Server.MapPath + "\db\northwind.mdb"/>
</appSettings>
Any suggestions for the correct syntax would be greatly
appreciated.
Thanks,
Rich
hardcoded path (dir1 is virtual dir).
<appSettings>
<add key="conn"
value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=d:\dir1
\db\northwind.mdb"/>
</appSettings>
But I would like to make the path dynamic with
Server.MapPath except I don't know how to apply it in
web.config. Is Server.MapPath even supported in
web.config?
<appSettings>
<add key="conn"
value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" +
Server.MapPath + "\db\northwind.mdb"/>
</appSettings>
Any suggestions for the correct syntax would be greatly
appreciated.
Thanks,
Rich