DATALIST REPEATCOLUMNS
做了一个用户控件
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="zpnew.ascx.cs" Inherits="Employee.zpnew" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:DataList id="Dlist" RepeatColumns="2" Width="100%" runat="server">
<HeaderTemplate>
<table width="100%" cellpadding="0" cellspacing="0" bordercolorlight="#dfdfe2" bordercolordark="#ffffff"
border="0">
</HeaderTemplate>
<ItemTemplate>
<tr align="center" valign="middle">
<td width="300" align="center" valign="top"><a href="CominfoNew.aspx?&comid=<%# DataBinder.Eval(Container.DataItem,"company") %>"><%# DataBinder.Eval(Container.DataItem, "comname")%></a></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate> </asp:datalist>
我的repeatcolumns 设置了2列,但是显示的时候始终只显示1列,搞了2个小时了,还不知道原因,希望各位大哥提示下,哪个地方错了