|
|
@@ -924,10 +924,10 @@ namespace System.Web.UI
|
|
|
{
|
|
|
if (_renderMethodDelegate != null) {
|
|
|
_renderMethodDelegate (writer, this);
|
|
|
- } else if (HasControls ()) {
|
|
|
- int len = Controls.Count;
|
|
|
+ } else if (_controls != null) {
|
|
|
+ int len = _controls.Count;
|
|
|
for (int i = 0; i < len; i++) {
|
|
|
- Control c = Controls [i];
|
|
|
+ Control c = _controls [i];
|
|
|
#if NET_2_0
|
|
|
if (c.Adapter != null)
|
|
|
c.RenderControl (writer, c.Adapter);
|