1. you should only select the limited numbers of records from your child table in SQLor2. remove the records you don't need before bindingor3. try (ugly):<itemtemplate>
<asp:Literal id=lit runat=server Text='<%# "&nbsp;&nbsp;&nbsp;&nbsp;"+DataBinder.Eval(Container.DataItem, "[\"NewsPic\"]")%>' Visible='<%# Container.ItemIndex < 4 %>' />
</itemtemplate>

解决方案 »

  1.   

    谢谢 saucer(思归)!
    你告诉我的思路我基本明白,我只会做到通过top 12取出新闻列表中的条数,但它有可能12条都在一个分类里,而不是分布在各类中,请大哥能否再说明清楚一点.怎么才能把各类相关的4条显示在相应的位置?
      

  2.   

    try to something likeselect * from news n 
    where newsid in (select top 4 newsid from news where newssortid=n.newssortid order by datetimefield desc) 
    order by newssortid