I've been experiencing some (reproducable) wierdness when I try to generate
some very basic HTML using ASP. Check out the following (basic) ASP code:
=============== =============== =============
<% Option Explicit
Const STRING_1 = "/admin/UploadProgress2 .asp"
Const STRING_A = "AXFFile" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled </title>
</head>
<body>
<%=STRING_A%>.S erver = "<%=Request.Ser verVariables("S ERVER_NAME")%>"
<%=STRING_A%>.P ort = <%=Request.Serv erVariables("SE RVER_PORT")%>
<%=STRING_A%>.O bjectName = "<%=STRING_ 1%>"
</body>
</html>
=============== =============== =============
The problem is that, when I "run" the ASP page and view the HTML source code
that is generated, I get the following:
=============== =============== =============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled </title>
</head>
<body>
AXFFile.Server = "www.nbsc.c om"
AXFFile.Port = 80AXFFile.Objec tName = "/admin/UploadProgress2 .asp"
</body>
</html>
=============== =============== =============
Why do lines 12 (<%=STRING_A%>. Port =
<%=Request.Serv erVariables("SE RVER_PORT")%>) and 13
(<%=STRING_A%>. ObjectName = "<%=STRING_1%>" ) appear as a single line in
HTML? Can anybody else reproduce this problem, and if so, do you have any
idea why this is happening? I can always work around it by adding "vbcrlf"
to the end of each line, but I'd rather not work around it...........
Any help would be greatly appreciated.... . thanks in advance!
-= Tek Boy =-
some very basic HTML using ASP. Check out the following (basic) ASP code:
=============== =============== =============
<% Option Explicit
Const STRING_1 = "/admin/UploadProgress2 .asp"
Const STRING_A = "AXFFile" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled </title>
</head>
<body>
<%=STRING_A%>.S erver = "<%=Request.Ser verVariables("S ERVER_NAME")%>"
<%=STRING_A%>.P ort = <%=Request.Serv erVariables("SE RVER_PORT")%>
<%=STRING_A%>.O bjectName = "<%=STRING_ 1%>"
</body>
</html>
=============== =============== =============
The problem is that, when I "run" the ASP page and view the HTML source code
that is generated, I get the following:
=============== =============== =============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled </title>
</head>
<body>
AXFFile.Server = "www.nbsc.c om"
AXFFile.Port = 80AXFFile.Objec tName = "/admin/UploadProgress2 .asp"
</body>
</html>
=============== =============== =============
Why do lines 12 (<%=STRING_A%>. Port =
<%=Request.Serv erVariables("SE RVER_PORT")%>) and 13
(<%=STRING_A%>. ObjectName = "<%=STRING_1%>" ) appear as a single line in
HTML? Can anybody else reproduce this problem, and if so, do you have any
idea why this is happening? I can always work around it by adding "vbcrlf"
to the end of each line, but I'd rather not work around it...........
Any help would be greatly appreciated.... . thanks in advance!
-= Tek Boy =-
Comment