difference between configSource and file attributes in web.config
-
hi can anybody tell the difference between configSource and file attributes in web.config file coolsweety
-
hi can anybody tell the difference between configSource and file attributes in web.config file coolsweety
+ The
file
attribute specifies an external file containing custom settings like you do in theappSettings
entry of the web.config file. Meanwhile, the external file specified in theconfigSource
attribute contains the settings for the section which you declare theconfigSource
for. For example, if you use theconfigSource
attribute of thepages
section, then the external file will contain the settings for thepages
section. + The custom settings declared in the external config specifified in thefile
attribute will be merged with the settings in theappSettings
section in the web.config file. In the meanwhile, theconfigSource
does not support merging, it means that you'll have to move the entire section settings into the external file. -
+ The
file
attribute specifies an external file containing custom settings like you do in theappSettings
entry of the web.config file. Meanwhile, the external file specified in theconfigSource
attribute contains the settings for the section which you declare theconfigSource
for. For example, if you use theconfigSource
attribute of thepages
section, then the external file will contain the settings for thepages
section. + The custom settings declared in the external config specifified in thefile
attribute will be merged with the settings in theappSettings
section in the web.config file. In the meanwhile, theconfigSource
does not support merging, it means that you'll have to move the entire section settings into the external file.thanx very much coolsweety