在页面中这样应用Repeater控件
        <form id="Form1" method="post" runat="server">
            
<FONT face="宋体">
                
<table>
                    
<tr>
                        
<td width="60%"></td>
                        
<td width="10%">日期</td>
                        
<td width="10%">人气</td>
                        
<td width="10%">文件大小</td>
                    
</tr>
                    
<asp:Repeater id="Repeater1" runat="server">
                        
<tr>
                            
<td><%# ((DataRowView)Container.DataItem)["Name"%></td>
                            
<td></td>
                            
<td></td>
                            
<td></td>
                        
</tr>
                        
<tr>
                            
<td><%# ((DataRowView)Container.DataItem)["Abstract"%></td>
                            
<td><%# ((DataRowView)Container.DataItem)["PublicDate"%></td>
                            
<td><%# ((DataRowView)Container.DataItem)["HotCount"%></td>
                            
<td><%# ((DataRowView)Container.DataItem)["FirstName"%></td>
                        
</tr>
                        
<tr>
                            
<td>操作系统:<%# ((DataRowView)Container.DataItem)["OS"%>&nbsp;&nbsp;&nbsp;授权方式:<%# ((DataRowView)Container.DataItem)["OfferStyle"%></td>
                            
<td></td>
                            
<td></td>
                            
<td></td>
                        
</tr>

                    
</asp:Repeater>
                
</table>
            
</FONT>
        
</form>

在执行的时候出现如下的错误:



怎么回事?

posted on 2006-02-28 11:43  今夜太冷  阅读(2744)  评论(1编辑  收藏  举报