有谁重写过treeView控件
我现在想在treeView加个textBox(服务器端的)
重写CreateChildControls()
protected override void CreateChildControls()
{
System.Web.UI.HtmlControls.HtmlInputText text = new HtmlInputText("text");
text.ID ="test";
this.Controls.Add(text);
base.CreateChildControls ();
}
可是报错如下:
CGC.Web.WebControls.UI.CGCTree”不允许使用子控件。
有谁知道如何给treeView加个文本框吗?