T
Tek Boy
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%>.Server = "<%=Request.ServerVariables("SERVER_NAME")%>"
<%=STRING_A%>.Port = <%=Request.ServerVariables("SERVER_PORT")%>
<%=STRING_A%>.ObjectName = "<%=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.com"
AXFFile.Port = 80AXFFile.ObjectName = "/admin/UploadProgress2.asp"
</body>
</html>
===========================================
Why do lines 12 (<%=STRING_A%>.Port =
<%=Request.ServerVariables("SERVER_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%>.Server = "<%=Request.ServerVariables("SERVER_NAME")%>"
<%=STRING_A%>.Port = <%=Request.ServerVariables("SERVER_PORT")%>
<%=STRING_A%>.ObjectName = "<%=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.com"
AXFFile.Port = 80AXFFile.ObjectName = "/admin/UploadProgress2.asp"
</body>
</html>
===========================================
Why do lines 12 (<%=STRING_A%>.Port =
<%=Request.ServerVariables("SERVER_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 =-