1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to make the response.write html code on a new line

Discussion in 'C#' started by gilgalbiblewheel, Aug 5, 2007.

  1. #1
    I get Html code on the same line.
    <html><head>...</head><body>...<body></html>
    Code (markup):
    I would like to get it on a new line:
    <html>
       <head>...
       </head>
       <body>...
       <body>
    <html>
    Code (markup):

    SEMrush
     
    gilgalbiblewheel, Aug 5, 2007 IP
    SEMrush
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    vbCrLf is the code for a new line break (but dont put it in "" marks)
     
    AstarothSolutions, Aug 5, 2007 IP
  3. gilgalbiblewheel

    gilgalbiblewheel Well-Known Member

    Messages:
    435
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    How does that work?
    Response.write("bablablah")vbCrLf
     
    gilgalbiblewheel, Aug 5, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    response.write("<div>bobobobob</div>" & vbCrLf & "<div>fergerger</div>")

    would put the text in the html file on two separate lines (think & is the join, if not it is + )
     
    AstarothSolutions, Aug 5, 2007 IP
  5. Kommunicate

    Kommunicate Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try this:

    <% Response.Write("<html>"  + vbCrLf + "  <head>" + vbCrLf + "  ..." + vbCrLf + "  </head>" + vbCrLf + "</html>") %>
    Code (markup):
     
    Kommunicate, Aug 5, 2007 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Wow, thats what I said
     
    AstarothSolutions, Aug 5, 2007 IP
  7. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,607
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #7
    Yah - you can response.write "thisismydata" & vbcrlf and if you want to tab it in - you can use vbtab.
     
    ccoonen, Aug 6, 2007 IP