ภายในweb.configแฟ้ม: ใน ASP.NET แอพลิเคชันบางส่วนของการตั้งค่าเช่นappSettingsและconnectionStringsสนับสนุนคุณลักษณะและfileconfigSource
อะไรคือความแตกต่างระหว่างการใช้file-attribute และconfigSource-attribute? เมื่อใดที่คุณควรใช้แอตทริบิวต์ใดและคุณสามารถใช้ทั้งสอง
<?xml version="1.0"?>
<configuration>
<appSettings file="AppSettings.config">
</appSettings>
<connectionStrings configSource="ConnectionStrings.config">
</connectionStrings>
<!-- ... -->
</configuration>