日期:2014-05-18 浏览次数:20567 次
<form id="form1" runat="server"> <% List<DTO> list = new List<DTO>(); list = Service.GetALL(); %> <table > <tr> <td>标题</td> <td>图片</td> </tr> <% for (int i = 0; i < list.Count; i++) { %> <tr> <td> </td> </tr> <%} %> </table> </form>
<form id="form1" runat="server"> <% List<DTO> list = new List<DTO>(); list = Service.GetALL(); %> <table > <tr> <td>标题</td> <td>图片</td> </tr> <% for (int i = 0; i < list.Count; i++) { %> <tr> <td> <a href="链接"><%=从list中取出的标题></a> </td> <td> <img src="" /> </td> </tr> <%} %> </table> </form>