Setting Application Initialization Parameters
Application initialization parameters are variables that you can add as default values in a web application. Application initialization parameters are read-only values that are used at runtime, but the server administrator can alter them as needed.
You can use application initialization parameters to customize the behavior of a web application, either to display the value or use it in a binding expression. Application initialization parameters are expressed only as strings, and are valid only within a web application. For more information about variables that can span web applications, see
Setting Environment Variables.
To create an application initialization parameter for a web application
1. In the UI Development perspective, click the Solutions view, expand the User Interfaces folder, expand the project, and then expand the WebContent folder that contains the web application views.
2. Double-click the view you want to work with to open it in the editor.
3. In the Bindings view, expand Implicit Variables > Application Initialization Parameters to view the existing initialization parameters.
4. Right-click Application Initialization Parameters and click Add > Data.
5. In the Add New Property dialog box, type a name for the initialization parameter in the Property Name field and click Finish.
The new application initialization parameter appears in the Bindings view under the Application Initialization Parameters node.
6. Click the new application initialization parameter in the Bindings view.
7. In the Properties view, click the Data Binding tab and in the Value field, type a value for the parameter.
8. Save the web application project.
You can now drag this parameter from the Bindings view to a control on the design canvas to bind the control to the parameter.
Related Topics