IF you are saying this:
"the HTML source shows "
as in this
<tr> TEST</tr>
which you posted earlier.
Then I'll say, "of course" Tha't the raw HTML you'll see IF/WHEN you view
the source from the browser.
You need to be clear on exactly what you're doing.
When you say "when the project runs the page gets translated " I have no
idea what you mean by "the page gets translated". That could mean many
different things. Do you mean "rendered in the browser" or are you viewing
the source *after* the browser has rendered it?
Are you saying that you see in the RENDERED page in the browser - or
are you seeing it in the page source when you go to View Source (of the
rendered page)?
"Angel" <An***@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
You know what jordan I am writing my code as yyou specified and this
message
that I am writing eliminated the HTML equvalent to the empty space. I do
put
in my code as follows
aCell.innerText = Test
But what happens is that when the project runs the page gets translated
and
the HTML that is outputed converts the ampersand up top to
TEST.
any thoughts.
thanks.
"Jordan" wrote:
It will recognize and display one blank space - which is what you have.
If
you want more, then you need
"Angel" <An***@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com... > Sorry I meant:
>
> aCell.innerText = " TEST"
>
> "Angel" wrote:
>
>> Thanks for the responses. I tried this but when the asp.net page is
>> displayed
>> it translates
>>
>> aCell.innerText = " TEST"
>>
>> it displays it literally like you see it.
>>
>> " TEST"
>>
>> If I look at the source of the page it translated the Code as such:
>>
>> <tr> TEST</tr>
>>
>> Any thoughts???
>>
>> Thanks
>>
>> "Jordan" wrote:
>>
>> > Browsers ignore white space (blank spaces beyond the first/only one
>> > if
>> > one
>> > exists)
>> >
>> > When you want more than one blank space, the solution is to
>> > explicitly
>> > place
>> > a "nonbreaking space" ( ) character for each blank space you want.
>> >
>> > So, your code with three blank spaces would be this:
>> > celCreate.innerText = " TEST"
>> >
>> > crazy but true.
>> >
>> > -HTH
>> >
>> >
>> >
>> > "Angel" <An***@discussions.microsoft.com> wrote in message
>> > news:C5**********************************@microsof t.com...
>> > >I want to concat a space in an HTML Control's innerText property.
>> > >here
>> > >is a
>> > > sample code
>> > >
>> > > Dim celCreate As New HtmlControls.HtmlTableCell()
>> > >
>> > > celCreate.innerText = " TEST"
>> > >
>> > >
>> > > When the page is displayed the spaces are not there! What can I
>> > > do?
>> > >
>> > > Thanks in advance
>> >
>> >
>> >