【发布时间】:2013-06-14 12:15:50
【问题描述】:
这是我的用户控件:
AutomezziEAttrezzature.ascx
这是asp:DropDownList 在OnSelectedIndexChanged 阶段调用的函数:
protected void ddCategoriaHasChanged(object sender, EventArgs e)
{
// my asp:Panel
categoriaCaricata.Controls.Clear();
}
我想在categoriaCaricata 面板中添加这个控件。我该怎么做?有人警告我使用DynamicControlsPlaceHolder,但不清楚它是如何工作的以及为什么。
你能给我一个聪明的例子吗?
【问题讨论】:
标签: c# .net user-controls webforms updatepanel