Relative path reference in WebConfig.ConnectionString
- by Ngu Soon Hui
Is it possible to specify a relative path reference in connectionstring, attachDbFileName property in a web.config?
For example, In my database is located in the App_data folder, I can easily specify the AttachDBFilename as|DataDirectory|\mydb.mdf and the |Datadirectory| will automatically resolve to the correct path.
Now, suppose that web.config…