Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. using VbNewLine

using VbNewLine

Scheduled Pinned Locked Moved ASP.NET
questionworkspace
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    praveenkumar_mca
    wrote on last edited by
    #1

    Hi friends, In my project i create a text file in runtime and upload to another FTP. My text file formate is HD8/21/200715:30:4300000008 RC8/21/200715:30:43 hfghg 000000009477276 5gfgf fdgdfg AA1 1AA UK hfghg 34534 CR8/21/2007 AS hfghg 5gfgf fdgdfg AA1 1AA 34534 CA CO00001OS 0001000011.0011011011cm AD fgdfg dfgdfg fgdfg AA1 1AA 3443 United Kingdom TR00000008 I have tryed System.Environment.NewLine, vbLf, Chr(13 + 10), vbLrLf, vbCr, ControlChars.NewLine Local its came rite formate but in live the formate will not come like this. the square character will come. What is the right way to inject a new line in a stringbuilder object

    Praveen Kumar.R

    C 1 Reply Last reply
    0
    • P praveenkumar_mca

      Hi friends, In my project i create a text file in runtime and upload to another FTP. My text file formate is HD8/21/200715:30:4300000008 RC8/21/200715:30:43 hfghg 000000009477276 5gfgf fdgdfg AA1 1AA UK hfghg 34534 CR8/21/2007 AS hfghg 5gfgf fdgdfg AA1 1AA 34534 CA CO00001OS 0001000011.0011011011cm AD fgdfg dfgdfg fgdfg AA1 1AA 3443 United Kingdom TR00000008 I have tryed System.Environment.NewLine, vbLf, Chr(13 + 10), vbLrLf, vbCr, ControlChars.NewLine Local its came rite formate but in live the formate will not come like this. the square character will come. What is the right way to inject a new line in a stringbuilder object

      Praveen Kumar.R

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      System.Environment.NewLine is correct. If it's been uploaded, then how is it being rendered, it sounds like a rendering problem.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      P 1 Reply Last reply
      0
      • C Christian Graus

        System.Environment.NewLine is correct. If it's been uploaded, then how is it being rendered, it sounds like a rendering problem.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        P Offline
        P Offline
        praveenkumar_mca
        wrote on last edited by
        #3

        Local its came rite formate but in live the formate will not come like this. HD02/08/200716:34:40:4000000008[]CR03/08/07/2007[]CR03/08/07/2007 the square character will come.

        Praveen Kumar.R

        V 1 Reply Last reply
        0
        • P praveenkumar_mca

          Local its came rite formate but in live the formate will not come like this. HD02/08/200716:34:40:4000000008[]CR03/08/07/2007[]CR03/08/07/2007 the square character will come.

          Praveen Kumar.R

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          If you are rendering in a web browser, the Environment.NewLine might not have any effect unless encompassed within a PRE tag. You may like to replace them with BR tags to get that line break effect.

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups