monkey_boys
monkey_boys

Reputation: 7348

How to create Dynamic User Control in Page

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

Upvotes: 0

Views: 248

Answers (1)

Graham Clark
Graham Clark

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

Related Questions