|
-
Feb 6th, 2003, 02:51 PM
#1
Thread Starter
Hyperactive Member
Understanding Web.Config *RESOLVED*
I'm using the config file for storing some application-wide settings. So I have an entry like this in web.config:
<appSettings>
  <add key="A" value="whatever" />
</appSettings>
I then grab the value for a key like like this:
ConfigurationSettings.AppSettings("A")
Nothing special so far...
But what I've also got is a web app nested within another web app, so it kind of looks like:
Parent Virtual Directory
Web.Config (Key="A"...)
Parent.aspx
Child Virtual Directory
Web.Config (Key="B"...)
Child.aspx
The behavior I'm seeing is the Child code can retreive a config setting defined at the parent level. In other words in the above example, child.aspx can make 2 calls :
ConfigurationSettings.AppSettings("A")
ConfigurationSettings.AppSettings("B")
and get a value for each, but each value is coming from a different config file.
Is this legitimate stuff? Understanding better will really help me out. Thanks!
Last edited by fungi; Feb 10th, 2003 at 11:19 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|