InnerContentTag() public method

public InnerContentTag ( ) : IHtmlNode
return IHtmlNode
Ejemplo n.º 1
0
        protected override void WriteHtml(System.Web.UI.HtmlTextWriter writer)
        {
            if (Items.Any())
            {
                this.PrepareItemsAndDefineSelectedIndex();
            }

            IDropDownHtmlBuilder builder = new ComboBoxHtmlBuilder(this);

            IHtmlNode rootTag = builder.Build();

            builder.InnerContentTag().AppendTo(rootTag);

            builder.HiddenInputTag().AppendTo(rootTag);

            //output window HTML
            rootTag.WriteTo(writer);

            base.WriteHtml(writer);
        }