// Authors:
// Lluis Sanchez Gual (lluis@novell.com)
//
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2010 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.ComponentModel;
using System.Security.Permissions;
protected override void AddParsedSubObject(object obj)
{
LiteralControl lit = obj as LiteralControl;
- if (lit != null) text = lit.Text;
+ if (lit != null)
+ text = lit.Text;
+ else
+ base.AddParsedSubObject (obj);
}
- /* Appears in corcompare */
protected override ControlCollection CreateControlCollection ()
{
- return (base.CreateControlCollection ());
+ return new ControlCollection (this);
}
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
protected internal override void Render (HtmlTextWriter writer)
{
writer.RenderBeginTag (HtmlTextWriterTag.Title);
- writer.Write (text);
+ if (HasControls () || HasRenderMethodDelegate ())
+ RenderChildren (writer);
+ else
+ writer.Write (text);
writer.RenderEndTag ();
}
}
}
-#endif