How can you center the text in a label inside a cell? I'm adding the label to the cell dynamically.
VB Code:
  1. Dim lbl As New Label
  2.                 lbl.Style.Add("ALIGN", "center") 'these doesn't seem to work
  3.                 lbl.Font.Size = FontUnit.XXSmall
  4.                 lbl.Text = xImage.Attributes("title").Value & "<BR>"
  5.                 'I can do it by adding html in there but was looking for a better way
  6.                 'lbl.Text = "<P style=""TEXT-ALIGN: center"">" & xImage.Attributes("title").Value & "</P><BR>"
  7.  
  8.                 Dim hl As New HyperLink
  9.                 hl.NavigateUrl = xImage.Attributes("fullsize").Value
  10.                 hl.ImageUrl = xImage.Attributes("thumbnail").Value
  11.  
  12.                 tc = New TableCell
  13.                 tc.Controls.Add(lbl)
  14.                 tc.Controls.Add(hl)
  15.                 tr.Cells.Add(tc)
Also how can I get the Hyperlink to go down a line? Right now I just add a <BR> in there but is there another way?