Re: How to add in runtime
- From: "Dave Fancher" <dave@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 07:47:25 -0500
I suspect you're having trouble because you're using InnerText rather than
InnerHtml on your HtmlTableCell. The value of InnerText is HTML encoded so
it makes sense that the "&" in " " would be converted to "&".
HTH
----------------
Dave Fancher
http://www.davefancher.com
"Jouni Karppinen" <JouniKarppinen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:9BD46208-5682-49B1-9D54-CBB0BBA77BA5@xxxxxxxxxxxxxxxx
> My first message didn't show up correctly.
>
> Output to HTML page was:
> <td class="viewCell">&nbsp;</td>
> when using cell.InnerText = " ";
>
>
>
> "Eliyahu Goldin" wrote:
>
>> Why aren't you happy with <td class="demo">&npsp;</td>?
>>
>> Eliyahu
>>
>> "Jouni Karppinen" <JouniKarppinen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message news:4A8F3B82-0694-46B9-87FC-F45AE6A27891@xxxxxxxxxxxxxxxx
>> > 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?
>> >
>>
>>
>>
.
- Follow-Ups:
- Re: How to add in runtime
- From: Jouni Karppinen
- Re: How to add in runtime
- References:
- How to add in runtime
- From: Jouni Karppinen
- Re: How to add in runtime
- From: Eliyahu Goldin
- Re: How to add in runtime
- From: Jouni Karppinen
- How to add in runtime
- Prev by Date: Re: Is it possible to sub class the HtmlInputFile control?
- Next by Date: Re: I know this does not belong here... but....
- Previous by thread: Re: How to add in runtime
- Next by thread: Re: How to add in runtime
- Index(es):
Relevant Pages
|