不清楚你要做什么,用Response.Write()方法就能打印出来了,外面随便裹个类好了~设计讲究目的与思想,不管行为和方法。

解决方案 »

  1.   

    public class builderTable: WebControl 
    {
               initTable();          }
                     protected Table initTable()
    {
    Table titleTable = new Table();
    titleTable.CellPadding=0;
    titleTable.CellSpacing=0;
    titleTable.BorderWidth=0;

    TableRow tr = new TableRow();
    TableCell leftImgCell = new TableCell();
    tr.Cells.Add(leftImgCell);

                                TableCell cellTitle =new TableCell();
                               cellTitle.text="hello";
    tr.Cells.Add(cellTitle);
    return titleTable ;
    }