生成控件错误.请帮忙看看
//ToolBar.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Lib.UI
{
[ToolboxData( " <{0}:ToolBar runat=server> </{0}:ToolBar> ")]
[ParseChildren(true, "ButtonCollection ")]
public class ToolBar : WebControl
{
private List <ToolBarButton> buttonCollection;
[
Category( "集合 "),
Description( "项集合 "),
DesignerSerializationVisibility(
DesignerSerializationVisibility.Content),
PersistenceMode(PersistenceMode.InnerDefaultProperty)
]
public List <ToolBarButton> ButtonCollection
{
get
{
if (buttonCollection == null)
buttonCollection = new List <ToolBarButton> ();
return buttonCollection;
}
set
{
buttonCollection = value;
}
}
protected override void CreateChildControls()
{
this.EnsureChildControls();
base.CreateChildControls();
}
protected override void Render(HtmlTextWriter