Do Web.Configs inherit each other?

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

I just noticed something in one of my applications which is in a folder
within another application.

My application is grabbing the DB connection string from the Web.Config
file:

strConnect = ConfigurationSettings.AppSettings("DBConn")

My application's Web.Config file doesn't have this DBConn appSettings key,
so I assume it's grabbing it from the parent applications web.config file?

In addition, these nested apps are all sharing the same forms authentication
form (shared via the machine key).

-Darrel
 
I just noticed something in one of my applications which is in a folder
within another application.

My application is grabbing the DB connection string from the Web.Config
file:

strConnect = ConfigurationSettings.AppSettings("DBConn")

My application's Web.Config file doesn't have this DBConn appSettings key,
so I assume it's grabbing it from the parent applications web.config file?

In addition, these nested apps are all sharing the same forms authentication
form (shared via the machine key).

-Darrel
Correct, inheriting does occur.
 
Correct, inheriting does occur.

Ah. That's useful. Is that by default or due to our apps sharing the
authentication mode across apps?

-Darrel
 
Back
Top