Guys ! With a PlaceHolder or Literal control, ANYTHING is possible ! If you are going to create all the child controls/markup in the code, what is the use of databinding? An extremely powerful control such as the GridView could be argued to be irrelevant if your logic is accepted.
On May 27, 11:45 am, cipto john <[email protected]> wrote: > Just addition, > make a div run at server add Literal Control > implement ITemplate > > > > On Tue, May 26, 2009 at 1:19 PM, Arji <[email protected]> wrote: > > > It can be possible with placeholder. check the below video. I have > > tried and succeeded too., > > >http://www.asp.net/Learn/ajax-videos/video-286.aspx > > > Happy Coding. > > Revanth Arji > > > On May 24, 2:14 pm, Cerebrus <[email protected]> wrote: > > > 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- Hide quoted text - > > - Show quoted text -
