On my computer I am developing a 3 tier Web application which I publish as two different versions, one for production and one for development purposes: IMP-PROD for production and IMP-DEV for developement. Both connect to their own database: respectively
IMPDB-PROD and IMPDB-DEV.
I have one Server with IIS and MS SQL for both Web applications. Each web app have the same hosting url but with a different sub folder name (similar to virtual folders).
I would like the Data Layer to auto detect its URL as to connect to the right database.
The web.config files contains both connection strings,
and I have a Public Class in the data layer that reads those strings
From the datalayer I can detect the CultureInfo but I cannot get session variables which I could use to detects the URL.
Can someone offer me suggestions?
Thanks
P:oD
----- presentation layer ---- ...
Go to the complete details ...