//These methods create the actual controls and databinding for the controls specified in the "CreateGenControl" method. #region "Literal tokens" private void CreateTreeLi(Control container, XmlNode xmlNod) { var cssclass = ""; if (xmlNod.Attributes != null && (xmlNod.Attributes["cssclass"] != null)) { cssclass = xmlNod.Attributes["cssclass"].InnerText; } var lc = new Literal(); lc.Text = LocalUtils.GetTreeTabLi(cssclass); lc.DataBinding += LiteralDataBinding; container.Controls.Add(lc); }