Rock.Web.UI.Controls.LiquidFieldTemplate.InstantiateIn C# (CSharp) Method

InstantiateIn() public method

When implemented by a class, defines the T:System.Web.UI.Control object that child controls and templates belong to. These child controls are in turn defined within an inline template.
public InstantiateIn ( Control container ) : void
container System.Web.UI.Control The object to contain the instances of controls from the inline template.
return void
        public void InstantiateIn( Control container )
        {
            DataControlFieldCell cell = container as DataControlFieldCell;
            if ( cell != null )
            {
                this.LiquidField = cell.ContainingField as LiquidField;
                Literal lOutputText = new Literal();
                lOutputText.DataBinding += lOutputText_DataBinding;
                cell.Controls.Add( lOutputText );
            }
        }