>protected void Page_Load(object sender, EventArgs e) >{ > if (!IsPostBack) > { > tblHeader = new Table(); > tblHeader.Visible = true; > tblHeader.ID = "tblHeader"; > tblHeader.Attributes.Add("width", "100%"); > > TableRow Row0 = new TableRow(); > tblHeader.Rows.Add(Row0); > > System.Web.UI.WebControls.Image imgHeader = new System.Web.UI.WebControls.Image(); > imgHeader.ImageUrl = "Images/page_header.gif"; > > TableCell Cell0 = new TableCell(); > Cell0.Controls.Add(imgHeader); > Cell0.ColumnSpan = 0; > Cell0.Width = 400; > > Label lblCaption = new Label(); > lblCaption.Text = "Apex Management Reports"; > lblCaption.Font.Bold = true; > lblCaption.Font.Name = "Arial"; > lblCaption.Font.Size = 14; > lblCaption.ForeColor = Color.Red; > > TableCell Cell1 = new TableCell(); > Cell1.Controls.Add(lblCaption); > > Row0.Cells.Add(Cell0); > Row0.Cells.Add(Cell1); > > this.Controls.Add(tblHeader); > } >} >