Author: toshok
Date: 2005-09-03 13:44:32 -0400 (Sat, 03 Sep 2005)
New Revision: 49398
Modified:
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs
Log:
add a blurb about CreateControlCollection
Modified:
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs
2005-09-03 16:40:14 UTC (rev 49397)
+++
trunk/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs
2005-09-03 17:44:32 UTC (rev 49398)
@@ -37,7 +37,6 @@
//TODO: Check to see if Render really is overridden instead of a
LiteralControl being added. It apears that this is the
//case due to testing. Anything inside the block is overwritten by the content
of this control, so it doesnt apear
//to do anything with children.
-// a doc references this. add? protected override ControlCollection
CreateControlCollection();
//TODO: If Test.InnerText = Test.InnerHtml without ever assigning anything
into InnerHtml, you get this:
// Exception Details: System.Web.HttpException: Cannot get inner content of
Message because the contents are not literal.
@@ -140,6 +139,9 @@
base.RenderAttributes (writer);
}
+ /* we need to override this because our base class
+ * (HtmlControl) returns an instance of
+ * EmptyControlCollection. */
protected override ControlCollection CreateControlCollection ()
{
return new ControlCollection (this);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches