|
// -- FILE ------------------------------------------------------------------
// name : VariablesUserForm.cs
// project : Itenso Web User Forms
// created : Jani Giannoudis - 2008.10.30
// language : c#
// environment: .NET 2.0
// copyright : (c) 2008-2012 by Itenso GmbH, Switzerland
// --------------------------------------------------------------------------
using System;
using System.Web.UI;
using Itenso.WebUserForms.Controls;
using Itenso.WebUserForms.Data.Variable;
using Itenso.WebUserForms.Runtime;
// --------------------------------------------------------------------------
public partial class VariablesPage : 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 -------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.