nemteanu Posted August 3, 2004 Posted August 3, 2004 I have a web.config in the root of my application and another web.config in one sub-directory. In the second web.config there are specific setting for pages in that sub-directory. If I navigate to the page in the sub-directory using Response.Redirect the settings in the sub-directory web.config are visible (using ConfigurationSettings.AppSettings["something"]) but if I navigate using Server.Transfer the settings in the web.config in the sub-directory are not seen. It is like the application does not move the �focus� on the sub-directory. I could not find any documentation about this behaviour. If anyone has the explanation it would be very appreciated. This is the local web.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="FiscalYear" value="2005" /> <add key="ExpandSubaccounts" value="Yes" /> <!-- Yes|No --> </appSettings> </configuration> Thank you Quote
*Gurus* Derek Stone Posted August 3, 2004 *Gurus* Posted August 3, 2004 This is by design. Calls to Server.Transfer() will use the context of the invoking page. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.