|
-
May 10th, 2001, 09:34 AM
#1
Thread Starter
Hyperactive Member
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
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
May 10th, 2001, 10:48 AM
#2
Frenzied Member
Because response.write doesn't do that. Its the way it is supposed to behave.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 10th, 2001, 10:50 AM
#3
Thread Starter
Hyperactive Member
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
May 10th, 2001, 10:52 AM
#4
Black Cat
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
...
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 10th, 2001, 10:52 AM
#5
Frenzied Member
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..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 10th, 2001, 10:56 AM
#6
Thread Starter
Hyperactive Member
"Life isn't about finding yourself. Life is about creating yourself."
--George Bernard Shaw
-
May 10th, 2001, 06:28 PM
#7
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 10th, 2001, 11:21 PM
#8
Frenzied Member
<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..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|