R
RN
I have a table cell in which I add a few things, but I want a few HTML line
breaks (the <BR> tag) to separate these things. Sounds simple but I can't
get it to work.
Dim litBR as New Literal
litBR.text = "<BR><BR>"
MyTableCell.Controls.Add(CheckBoxControl)
MyTableCell.Controls.Add(litBR)
MyTableCell.Controls.Add(DataGridControl)
MyTableCell.Controls.Add(litBR)
MyTableCell.Controls.Add(ButtonControl)
MyTableCell.Controls.Add(litBR)
But in the HTML output, only the last litBR was added to the page. There
is no <BR><BR> between the checkbox and the datagrid and none between the
datagrid and the button. It only shows after the button. Why? When I
hover over the lines during debugging each line executes and it shows the
value of litBR.text does equal "<BR><BR>" throughout. The checkbox and
datagrid and button all display properly but with no spacing between. I'll
even take a workaround but I need to stay within this table cell.
breaks (the <BR> tag) to separate these things. Sounds simple but I can't
get it to work.
Dim litBR as New Literal
litBR.text = "<BR><BR>"
MyTableCell.Controls.Add(CheckBoxControl)
MyTableCell.Controls.Add(litBR)
MyTableCell.Controls.Add(DataGridControl)
MyTableCell.Controls.Add(litBR)
MyTableCell.Controls.Add(ButtonControl)
MyTableCell.Controls.Add(litBR)
But in the HTML output, only the last litBR was added to the page. There
is no <BR><BR> between the checkbox and the datagrid and none between the
datagrid and the button. It only shows after the button. Why? When I
hover over the lines during debugging each line executes and it shows the
value of litBR.text does equal "<BR><BR>" throughout. The checkbox and
datagrid and button all display properly but with no spacing between. I'll
even take a workaround but I need to stay within this table cell.