what does the ItemTemplate in your DataList look like?DataList1.DataSource=ds.Tables[0].DefaultView;
DataList1.DataBind();

解决方案 »

  1.   

    <asp:Label id=Label1 runat="server" Width="137px" Text='<%# DataBinder.Eval(Container.DataItem, "line_Name") %>'>试试1
      

  2.   

    to saucer试了没有反映!应该怎样用DataList
      

  3.   

    DataList.DataSource应该是一个DataView.同意 saucer(思归) 大虾 ds.Tables[0].DefaultView
      

  4.   

    <%# DataBinder.Eval(Container, "DataItem.line_Name") %> 这样写时对的.
      

  5.   

    see the examples http://www.dotnetjunkies.com/quickstart/aspplus/doc/webdatalist.aspx
      

  6.   

    谢谢 saucer(思归) 大侠了