Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...