One of many possibilities: You could use a Repeater and add the DIV
within the ItemTemplate. Then bind the Repeater to your DataTable.

On May 24, 3:14 am, "Dino L." <[email protected]> wrote:
> Hi everyone.
>
> I have one problem.
>
> I have a web content form like this...
>
> <asp:Content ID="Content4"
> ContentPlaceHolderID="ContentPlaceColumnRight" runat="server">
> <form id="Form1" runat=server>
>                 <!-- Device 1 -->
>         <div class="device-container">
>
>                 <input type="checkbox" id="cb1" name="cb1"/><span
> class="device-name"><a href="#">Device 1</a></span><span class="device-
> statusimg">Signal<img src="img/led-green.gif" /></span><span
> class="device-statusimg">Bat.<img src="img/led-orange.gif" /></span>
>         </div>
>
> ....................
>   <!-- more devices -->
>
>                 </form>
> </asp:Content>
>
> I have to create few DIVs like on this example, but based on data I
> have in datatable. I dont know how many I will get.
> How can I create them on page_load?
>
> I use C#?
>
> thanks

Reply via email to