设想:
UsrControl: Customsuser control, which includes a text Box and a button, rederally (in one line).
UsrControlContainer: Customsuser control, which should be found over UsrControlbject (each Object in seperate line, so the Seperator model will may be
<br />
. 这一控制还包含一个纽芬兰州,为收集工作增加了新的乌斯托·科蒂尔。
我的法典:
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"/>
<asp:Repeater ID="rptExample" runat="server">
<ItemTemplate>
</ItemTemplate>
<SeparatorTemplate><br /></SeparatorTemplate>
</asp:Repeater>
而且:
protected void Button1_Click(object sender, EventArgs e)
{
rptExample.DataSource = new List<UsrControl> {new UsrControl(), new UsrControl()};
rptExample.DataBind();
}
简单问题——我应在<条码>中说明什么?
Edit——我还要通过一些参数,然后才提交UsrControl。