J
JJ
Hi,
Using the app.config scenario and I added a Connectionstring to appSettings
area in xml. In the value string I have the datasource equal to a absolute
path on my dev machine. Now how can I set it to be relative to where my
project gets deployed to? Do I use Application.Startup in the connection
string startup as so :
<appSettings>
<add key="myCon" value="{"Jet OLEDB
atabase Password=;Data Source=" +
Application.Startup + "EMSWinDB.mdb';Password=;"};
</add>
</appSettings>
Or is there a better way, more effiecent way of doing this?
Thanks,
JJ
Using the app.config scenario and I added a Connectionstring to appSettings
area in xml. In the value string I have the datasource equal to a absolute
path on my dev machine. Now how can I set it to be relative to where my
project gets deployed to? Do I use Application.Startup in the connection
string startup as so :
<appSettings>
<add key="myCon" value="{"Jet OLEDB

Application.Startup + "EMSWinDB.mdb';Password=;"};
</add>
</appSettings>
Or is there a better way, more effiecent way of doing this?
Thanks,
JJ