一、下面的代码实现,每行显示三列
前台代码:
table
tr
asp:repeater id="Repeater1" runat="server"
ItemTemplate
td%#DataBinder.Eval(Container.DataItem,"thing")%/td
/ItemTemplate
/asp:repeater
/tr
/table
后台代码:
protected int i=1;
private void Page_Load(object sender, System.EventArgs e)
{
XmlSerializer ser = new XmlSerializer(typeof(DataSet));
DataSet ds = new DataSet("myDataSet");
DataTable t = new DataTable("table1");
DataColumn c = new DataCo...[ 查看全文 ]