G
Guest
I create a HTMLTable in my C# code and then add rows and cells into that table.
I'm trying to set top and bottom border for each cell by using stylesheet
and it works as far as cell has some text in it.
If cell has no content at all, the borders do not show up (..strange)
So I tried to insert text inside each cell which has no other content
inside.
Cell content is set in code:
cell.InnerText = " ";
What I wanted to get parsed to HTML:
<td class="demo"> </td>
but instead I got:
<td class="demo">&npsp;</td>
Any solutions?
I'm trying to set top and bottom border for each cell by using stylesheet
and it works as far as cell has some text in it.
If cell has no content at all, the borders do not show up (..strange)
So I tried to insert text inside each cell which has no other content
inside.
Cell content is set in code:
cell.InnerText = " ";
What I wanted to get parsed to HTML:
<td class="demo"> </td>
but instead I got:
<td class="demo">&npsp;</td>
Any solutions?