Missing space in output

D

David H

Hello.

Simple question for you probably. I can't understand why the output for
something like

<%="x"%> <%="x"%>

is

"xx" (no quotation marks)

Why is there no space between the two x's?
(Of course I could achieve this in other ways, but I can't understand
why this happens.)
 
R

Ray at

I just ran into this for the first time myself, too, recently. My line was
like:

Welcome <%=sFirstname%> <%=sLastname%>

In a view-source, there was clearly a space in the html, yet it displayed
like:

Welcome RayCostanzo

Why? I didn't bother trying to figure out what was up, so I just did:

<%=sFirstname & " " & sLastname%>

and all was fine. So, if nothing else, you're not alone in this!

Ray at work
 
G

Guest

-----Original Message-----
Hello.

Simple question for you probably. I can't understand why the output for
something like

<%="x"%> <%="x"%>

is

"xx" (no quotation marks)

Why is there no space between the two x's?
(Of course I could achieve this in other ways, but I can't understand
why this happens.)
 
W

William Morris

I've wondered if maybe the ASP engine ignores white space between ASP
delimiters, and THAT's why the output is jammed together.

- Wm


--
William Morris
Product Development, Seritas LLC
Kansas City, Missouri

Ray at said:
I just ran into this for the first time myself, too, recently. My line was
like:

Welcome <%=sFirstname%> <%=sLastname%>

In a view-source, there was clearly a space in the html, yet it displayed
like:

Welcome RayCostanzo

Why? I didn't bother trying to figure out what was up, so I just did:

<%=sFirstname & " " & sLastname%>

and all was fine. So, if nothing else, you're not alone in this!

Ray at work
 
E

Evertjan.

David H wrote on 01 mrt 2004 in microsoft.public.inetserver.asp.general:
Simple question for you probably. I can't understand why the output for
something like

<%="x"%> <%="x"%>

is

"xx" (no quotation marks)

Tested not true.

There is a space, both in the resulting html and in the IE6 output.
 
R

Ray at

So, I got home and looked at the page that I had been working on at home,
and yes, I apparently lied when I said the space showed up in a view source.
It does not show up. So, it does appear that ASP doesn't bother with the
single spaces in between like you said.

Ray at home

William Morris said:
I've wondered if maybe the ASP engine ignores white space between ASP
delimiters, and THAT's why the output is jammed together.

- Wm
 
D

David H

William Morris said:
I've wondered if maybe the ASP engine ignores white space between ASP
delimiters, and THAT's why the output is jammed together.

Yea, that was my thought too. Wonder why.
Thanks for all who looked at it (if you're reading this)
 
E

Evertjan.

David H wrote on 02 mrt 2004 in microsoft.public.inetserver.asp.general:
Yea, that was my thought too. Wonder why.
Thanks for all who looked at it (if you're reading this)

If this happens to some of us, but not to others,
it must be a ASP version thing.

W2003Server/IIS6.0 does not bug.

[If bug be a verb]
 
D

David H

Evertjan. said:
If this happens to some of us, but not to others,
it must be a ASP version thing.

W2003Server/IIS6.0 does not bug.

I've got IIS 5.1, so yeah, could be something with the versions. Thanks
Evertjan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,828
Members
47,374
Latest member
anuragag27

Latest Threads

Top