SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: line feed in c#

  1. #1
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    line feed in c#

    Hello,

    whats the serverside code equivalent for line feed. I know its "\n"

    I have a script to replace("\n", "") to remove the line feed on a textbox, but it is not working

    I know its VbCrf in VB, but whats it in c# ?

    thanks

    Ehi

  2. #2
    SitePoint Addict
    Join Date
    Feb 2005
    Location
    Clogland
    Posts
    322
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you tried replace("\r\n", "") ?

    (or you could use Environment.NewLine)

  3. #3
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thanks a lot


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •