Re: Another windows CE 4.2 web server bug?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Spaith [MS] (jspaith_at_ONLINE.microsoft.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 13:07:12 -0800

Yes, I'm afraid this is a bug in ASP. I apologize for the inconvenience.
This will be fixed for the next release of WindowsCE. In the meantime, the
only workaround I can give you would be to use something like an HTML space
("&nspc;" or something like that) or alternatly a dummy comment "<!-- -->"
right after the "%>" to force the space to be sent across.

-- 
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Have an opinion on the effectiveness of Microsoft Embedded newsgroups?  Let
us know!
https://www.windowsembeddedeval.com/community/newsgroups
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
"Emil Falcon" <emilfalcon@hotmail.com> wrote in message
news:effb7e33.0403251335.35fde450@posting.google.com...
> There seems to be yet another problem with the Windows CE 4.2 web
> server, or its ASP parser. When using Javascript ASP, the parser seems
> to strip all the spaces following a closing asp tag (%>).
>
> For example, the following code (there should be a space before the
> word "SPACE"):
>
> <%@LANGUAGE="JAVASCRIPT"%>
> <% test = "TEST"; %>
> <html><body>
> <p><% Response.Write(test) %> SPACE</p>
> <p><%=test%> SPACE</p>
> </body></html>
>
> yields the following correct HTML source with IIS under Windows XP:
>
> <html><body>
> <p>TEST SPACE</p>
> <p>TEST SPACE</p>
> </body></html>
>
> whereas the Windows CE server yields the following incorrect code
> (missing spaces):
>
> <html><body>
> <p>TESTSPACE</p>
> <p>TESTSPACE</p>
> </body></html>
>
> The problem only seems to manifest itself when something is actually
> being output in the ASP snippet preceding the text (i.e. something
> like: "<% somevar = 2 %> SPACE" seems to work OK).
>
> Has anyone else noticed this?
>
> --
> Emil Falcon


Relevant Pages

  • Re: Should we stay with M$
    ... Windows, and not on Linux. ... MS has a poor track record, has done since People started 'targetting' ... Apache does not have support for full-blown ASP ...
    (RedHat)
  • Re: Windows CE webserver with ASP <--> C++ application
    ... So your ASP page becomes: ... © 2003 Microsoft Corporation. ... > possibilities using the FileSystemObject which is not supported by Windows ...
    (microsoft.public.windowsce.embedded)
  • RE: ASP, Wscript.Shell on a Windows 2003 Server Web Edition
    ... could have something to do with a different set of server environment/account ... > In this group we typically deal with issues related to migrating Windows ... > migrate the current ASP code to this new environment. ... > In one of the ASP pages, a scheduled task is set up via Wscript.Shell ...
    (microsoft.public.windows.server.migration)
  • Re: Windows CE webserver with ASP <--> C++ application
    ... object that supports the IDispatch interface. ... that runs in ASP as well as a set of ASP pages that make use of it in the ... since the process will be very similiar for Windows CE and the ... © 2003 Microsoft Corporation. ...
    (microsoft.public.windowsce.embedded)
  • IIS doesnt display ASP pages, COM+ damaged
    ... Original post: ... I have a problem with ASP Pages not working on my Windows XP ... Component services, open up the node for Component services and click ...
    (microsoft.public.windowsxp.general)