http://localhost/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/grocertogo/grocertogo.src&file=CS\GrocerToGo.aspx&font=3

解决方案 »

  1.   

    你看的是源代码(在IE里面看到的)吧!再写静态网页的时候可以做,再写动态网页的时候也可以,你可以在服务器上生成一个复杂的Table然后发送到客户端,这个Table的复杂度取决于你的经验(静态网页中Table的复杂度)。其实微软大大部分数据绑定控件在客户端都解释成了Table!原理是一样的!你可以使用DataList或者DataGrid实现同样的效果!
      

  2.   

    public void InitNodes(string path,Table t)
    {
    int count =100;
    int row=10;int col;
    if(count%row==0)
    {
    col=count/row; }
    else
    {
    col=count/row+1; }
    for(int j=0;j<col;j++)
    {
    TableRow tr=new TableRow();
    t.Rows.Add(tr);

    for(int i=0;i<row;i++)
    {
    if(i*col+j<count)
    {
    TableCell tc=new TableCell();
    tr.Cells.Add(tc);

    Label lb2=new Label();

    lb2.Text="jjj";

    tc.Controls.Add(lb2);
    }
    }
    }
    }
    类似处理即可
      

  3.   

    在页面中加入PlaceHolder或是Pannel控件,再根据内容需要添加table及tablerow、tablecell等,再在PlaceHolder或Pannel中的Controls中加入该table:
    //protected PlaceHolder ph;该控件已经在页面中加入。
    private void AddTable()
    {
    Table table = new Table();
    TableRow row = new TableRow();
    TableCell cell = new TableCell();
    cell.Text = "Hello";
    row.Cells.Add(cell);
    table.Rows.Add(row);
    ph.Controls.Add(table);
    }