S
Susan Harris
I'm using the VS2008 IDE (C#) to create settings win Web.config. For
example:
<applicationSettings>
<ManagementReports.Properties.Settings>
<setting name="Company" serializeAs="String">
<value>ACME, Inc.</value>
</setting>
</ManagementReports.Properties.Settings>
</applicationSettings>
I them wanted to use the "Expression" property of a label control to bind
the setting to the label's content. However, I keep getting an error that
the setting does not exist. I've tried referencing it with:
1) ManagementReports.Properties.Settings.Company
2) ManagementReports.Properties.Settings.Default.Company
3) Properties.Settings.Company
4) Properties.Settings.Default.Company
None of them work. I can get it working if I put the setting under
appSettings directory, but it seems crazy that the two IDE provided
approaches would be incompatible. Am I missing something?
example:
<applicationSettings>
<ManagementReports.Properties.Settings>
<setting name="Company" serializeAs="String">
<value>ACME, Inc.</value>
</setting>
</ManagementReports.Properties.Settings>
</applicationSettings>
I them wanted to use the "Expression" property of a label control to bind
the setting to the label's content. However, I keep getting an error that
the setting does not exist. I've tried referencing it with:
1) ManagementReports.Properties.Settings.Company
2) ManagementReports.Properties.Settings.Default.Company
3) Properties.Settings.Company
4) Properties.Settings.Default.Company
None of them work. I can get it working if I put the setting under
appSettings directory, but it seems crazy that the two IDE provided
approaches would be incompatible. Am I missing something?