0
<% for (int i = 1; i <= 16; i++)
{
cami = i;
cami++;
//DataBind();
%>
<cam:CamControl ID="Cam1" CamID=<%# dcami(cami) %> runat="server" />
<% } %>
<% for (int i = 1; i <= 16; i++)
{
cami = i;
cami++;
//DataBind();
%>
<cam:CamControl ID="Cam1" CamID=<%# dcami(cami) %> runat="server" />
<% } %>
查看有關動態控件的偉大3-part post。還有一個follow-up post可下載的示例代碼。