Thanks, but that doesn't appear to help our situation here. We are overriding the System.Web.UI.Control for each control we use in our application. We are adding each of these to a controls collection then rendering them to an HTMLwriter at runtime.
control.cs
// allow the derived class to create controls to render
List<System.Web.UI.Control> controls = new List<System.Web.UI.Control>();
System.Web.UI.Control primaryControl = this.OnSetupControls(controls);
if (primaryControl != null)
{
primaryControl.ID = this.ID;
}
// render the controls created in the derived class
foreach (System.Web.UI.Control control in controls)
{
control.RenderControl(writer); <-- Exception occurs here on the CuteEditor class.
}
public class CuteEditortextArea : Control
{
protected override System.Web.UI.Control OnSetupControls(List<System.Web.UI.Control> controls)
{
CuteEditor.Editor rte = new CuteEditor.Editor();
rte.AutoConfigure = CuteEditor.AutoConfigure.Full;
rte.Text = "";
rte.Height = 200;
rte.ThemeType = CuteEditor.ThemeType.Office2000;
rte.Controls.e
controls.Add(rte);
return rte;
}
}