-
newline
Why does this code not give me a newline when i view the source in the browser.
Response.Write "<table width=100% align=center cellpadding=0 cellspacing=0 border=1>"
Response.Write "<tr bgcolor=#c0c0c0><td>ID</td>"
Response.Write "<td>Event</td>"
Response.Write "<td>A</td><td>Points A</td>"
Response.Write "<td>B</td><td>Points B</td>"
Response.Write "<td>C</td><td>Points C</td>"
Response.Write "<td>D</td><td>Points D</td>"
Response.Write "<td>Total Kills</td><td>Total Points</td>"
Response.Write "<td>Position</td>"
Response.Write "<td>Date</td>"
Response.Write "</tr>"
Response.Write "</table>"
Gary
-
Because response.write doesn't do that. Its the way it is supposed to behave.
-
-
You habe to manually write the newlines with vbcrlf if you want them:
Response.Write "<table width=100% align=center cellpadding=0 cellspacing=0 border=1>" & vbcrlf
Response.Write "<tr bgcolor=#c0c0c0><td>ID</td>" & vbcrlf
Response.Write "<td>Event</td>" & vbcrlf
...
-
You could add & vbCrLf to the end of each line if you really need to see the end result.. I would rather if I were using response.write to do HTML, leave it packed tho..
-
-
-
<BR> would change the way the page is displayed. I think he is just trying to get the page to be readable when he does view source to debug..