Reputation: 7348
<% for (int i = 1; i <= 16; i++)
{
cami = i;
cami++;
//DataBind();
%>
<cam:CamControl ID="Cam1" CamID=<%# dcami(cami) %> runat="server" />
<% } %>
Upvotes: 0
Views: 248
Reputation: 12966
Have a look at this great 3-part post about dynamic controls. There's also a follow-up post with downloadable example code.
Upvotes: 1