VariablesUserForm.aspx.cs
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:1k
- // -- FILE ------------------------------------------------------------------
- // name : VariablesUserForm.cs
- // project : Itenso Web User Forms
- // created : Jani Giannoudis - 2008.10.30
- // language : c#
- // environment: .NET 2.0
- // copyright : (c) 2008 by Itenso GmbH, Switzerland
- // --------------------------------------------------------------------------
- using System;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using Itenso.WebUserForms.Controls;
- using Itenso.WebUserForms.Data.Variable;
- using Itenso.WebUserForms.Runtime;
- // --------------------------------------------------------------------------
- public partial class VariablesPage : System.Web.UI.Page
- {
- // ------------------------------------------------------------------------
- protected override void OnLoad( EventArgs e )
- {
- // load form control
- UserControl userForm = new UserFormLoader( "~/UserForms/VariablesUserForm.ascx" ).Load();
- // variables
- IVariableSet variableSet = new DemoVariableProvider().GetFormVariables( userForm );
- VariableAdapter.ExpandVariables( variableSet, userForm );
- FormPlaceHolder.Controls.Add( userForm );
- base.OnLoad( e );
- } // OnLoad
- } // class VariablesPage
- // -- EOF -------------------------------------------------------------------