W
wl
Hi,
For an asp.net application I would like to store the DB connectionstring to
be used in a configuration file.
I know I can use the web.config file for this (and know how to read from
it). However, because I have my asp.net application hosted all codebehind
DLL's need to be put into the same BIN directory.
Therefore I would like to store the db configuration string for each
application into it's own configuration file. This configuration file could
have the same name (and be in the same BIN directory) as the codebehind DLL,
but with another file extention (XML instead of DLL).
eg: \BIN directory
project1.dll
project1.xml
project2.dll
project2.xml
Does anyone know how I can do this:
1. getting the absolue path of the codebehind DLL
2. reading from this file ?
Thanks in advance,
Wim
For an asp.net application I would like to store the DB connectionstring to
be used in a configuration file.
I know I can use the web.config file for this (and know how to read from
it). However, because I have my asp.net application hosted all codebehind
DLL's need to be put into the same BIN directory.
Therefore I would like to store the db configuration string for each
application into it's own configuration file. This configuration file could
have the same name (and be in the same BIN directory) as the codebehind DLL,
but with another file extention (XML instead of DLL).
eg: \BIN directory
project1.dll
project1.xml
project2.dll
project2.xml
Does anyone know how I can do this:
1. getting the absolue path of the codebehind DLL
2. reading from this file ?
Thanks in advance,
Wim