473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Missing space in output

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.)

--
David H

Jul 19 '05 #1
11 1540
Because "x" doesn't have a space in it ...
try:

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

David H wrote:
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.)

Jul 19 '05 #2
"Dave Karmens" <sp*************@yahoo.ca> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
Because "x" doesn't have a space in it ...
try:

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


I believe he's asking why the space after %> and before the following <% is
ignored.
For example, despite the fact that there is clearly a space in the HTML
portion of code (between the ASP tags), this does not produce any whitespace
before the 2nd "x":
<%="x"%> <%="x"%>

However, if you insert any other character in there, surrounded by
whitespace, you will see the spaces:
<%="x"%> x <%="x"%>

This will show as:
x x x

Why? I don't know. I suppose one solution would be to put a non-breaking
space between the ASP tags, but why is that required?

Regards,
Peter Foti
Jul 19 '05 #3
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

"David H" <ha******@msn.com> wrote in message
news:q9********************@newsc.telia.net...
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.)

--
David H

Jul 19 '05 #4
for space write this:
give space right after x.
<%="x "%> <%="x"%>
-----Original Message-----
Hello.

Simple question for you probably. I can't understand why the output forsomething 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 understandwhy this happens.)

--
David H

.

Jul 19 '05 #5
-----Original Message-----
Hello.

Simple question for you probably. I can't understand why the output forsomething 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 understandwhy this happens.)

--
David H

.

Jul 19 '05 #6
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 <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:eT**************@TK2MSFTNGP10.phx.gbl...
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

"David H" <ha******@msn.com> wrote in message
news:q9********************@newsc.telia.net...
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.)

--
David H


Jul 19 '05 #7
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #8
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" <ne***************************@seamlyne.com> wrote in
message news:c2*************@ID-205671.news.uni-berlin.de...
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 <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:eT**************@TK2MSFTNGP10.phx.gbl...
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

"David H" <ha******@msn.com> wrote in message
news:q9********************@newsc.telia.net...
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.)

--
David H



Jul 19 '05 #9
William Morris <ne***************************@seamlyne.com> wrote in:
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)

--
David H

Jul 19 '05 #10
David H wrote on 02 mrt 2004 in microsoft.public.inetserver.asp.general:
William Morris <ne***************************@seamlyne.com> wrote in:
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)


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]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #11
Evertjan. <ex**************@interxnl.net> wrote in:
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.

--
David H

Jul 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob | last post by:
Hello all, I'm attempting to use JpGraph (http://www.aditus.nu/jpgraph/index.php) with PHP (4.3.1) and Apache (1.3.26) runnning on WindowsXP. However, I receive the following notice: Notice:...
2
by: bobs | last post by:
Hello, I was wondering if some one could take a look at the two example server outputs below, and help me understand what is wrong. I'm getting garbled characters. The php script I'm developing...
14
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
1
by: Philip Yale | last post by:
At my current workplace, whenever I check table sizes using the 'reserved' column from sysindexes, or sp_spaceused, I get a total for all user tables which exceeds the physical size of the...
1
by: Mark247 | last post by:
Hi, When transforming an XSLT to HTML I get a very annnoying white spac gap of about 2px under each image. This is particularly annoying as am creating a vertical navigation menu made up of images...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
2
by: fritz-bayer | last post by:
Hi, in a shell script of mine I'm executing a mysql SELECT in batch mode. I want to use the return value for other sql statements. The problem I'm facing is that the tabs, which seperate the...
8
by: dancer | last post by:
Using ASP.net 1.1 to create user input form. When I put a RequiredFieldValidator I have extra space at the bottom of the cell, as if I had put a <br>. When I comment out the...
2
by: asmpic | last post by:
Hi, I stumbled upon a script on the internet that monitors disk space and if it reaches a certain percentage being full it send an email. However, the problem I encountered was that one of the file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.