Thanks, Chris! I'm not quite there, but you've definitely helped me get closer. Any idea where I'm going wrong? Here's the error message: The application setting 'KeyName' was not found in the applications configuration. Just to make sure my problem is clear, I'm looking to hardcode a value in web.config that can be retrieved dynamically in the html of the webform. This will allow me to have many webforms in the solution and only have to change a value once in web.config for it to change on all the webforms. Here's the updated code: Web.Config: ?xml version="1.0"? configuration configSections sectionGroup name="MicroFocus.COBOL.Application" section name="AppSettings" type="System.Configuration.NameValueSectionHandler"/ /sectionGroup /configSections MicroFocus.COBOL.Application AppSettings add key="KeyName" value="KeyValue"/ /AppSettings /MicroFocus.COBOL.Application system.web compilation batch="false" debug="true" targetFramework="4.0"/ /system.web system.webServer modules runAllManagedModulesForAllRequests="true"/ /system.webServer system.codedom compilers compiler language="COBOL" extension=".cbl" compilerOptions="sourceformat(variable) warnings(2)" type="MicroFocus.COBOL.CodeDom.COBOLCodeProvider, MicroFocus.COBOL.CodeDom, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0"/ /compilers /system.codedom /configuration ASP Webform: asp:Label ID="Label1" runat="server" Text=" %$ AppSettings:KeyName% " /asp:Label
↧