views:

138

answers:

1
<% for (int i = 1; i <= 16; i++)
               {
                   cami = i;
                   cami++;
                   //DataBind();
                    %>
            <cam:CamControl ID="Cam1" CamID=<%# dcami(cami)  %> runat="server" />
               <% } %>
+1  A: 

Have a look at this great 3-part post about dynamic controls. There's also a follow-up post with downloadable example code.

Graham Clark