createchild控件中的问题 [英] problem in createchild control
本文介绍了createchild控件中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在创建子控件时遇到问题..我刚刚在我的网页部分看到你好..我看不到按钮...什么是错误的?
i have problem in create child controls .. i just seen "hello " in my web part .. i can't see button ... what's wrond ???
protected override void Render(HtmlTextWriter writer)
{
writer.Write("hello");
}
protected override void CreateChildControls()
{
Button btm = new Button();
btm.Text="heeloo";
Controls.Add(btm);
}
推荐答案
这篇关于createchild控件中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文