Saturday, 15 February 2014

c# - Generating an HTML Table - Row Control -



c# - Generating an HTML Table - Row Control -

i writing application generate "image summary" of directory. image summary beingness html document table containing images of directory. attempting create html document streamwriter. want each row (<tr>) contain 6 images. how can accomplish this? i've searched 4.5 hours on google , bing, , can't find thing helps. thanks.

i utilize listview. should started:

<asp:listview runat="server" id="listview1" datasourceid="sqldatasource1"> <layouttemplate> <table runat="server" id="table1" > <tr runat="server" id="itemplaceholder" ></tr> </table> </layouttemplate> <itemtemplate> <tr runat="server"> <td runat="server"> <asp:image id="image1" runat="server" imageurl='<%#eval("imageurl") %>' /> </td> </tr> </itemtemplate> </asp:listview>

this create tr single td every row of data. want create 6 td's images instead of one.

c# html table code-generation

No comments:

Post a Comment