如何获取asp.net中动态加载的控件的值

如何获取asp.net中动态加载的控件的值,asp.net,asp.net-controls,Asp.net,Asp.net Controls,在我的页面中,我动态加载一些控件 在页面中 <asp:DropDownList runat="server" OnSelectedIndexChanged="onchanged"></asp:DropdownList> <asp:PlaceHolder id="placeholder" runat="server"> 现在,这个页面已经提交了,我想获取“part.ascx”中控件的值,但是我无法获取它 问题出在哪里?Part.ascx仅在下拉列表中更改所选项

在我的页面中,我动态加载一些控件

在页面中

<asp:DropDownList runat="server" OnSelectedIndexChanged="onchanged"></asp:DropdownList>
<asp:PlaceHolder id="placeholder" runat="server">
现在,这个页面已经提交了,我想获取“part.ascx”中控件的值,但是我无法获取它


问题出在哪里?

Part.ascx仅在下拉列表中更改所选项目时才应显示?part.ascx包含哪些控件?part.ascx:asp:TextBox中的控件
public void onchanged(object sender,EventArgs e){
  Control c=loadControl('part.ascx');
  this.placeholder.Controls.Add(c);
}