s = s.Replace( "\r", string.Empty ).Replace( "\n", string.Empty );

Cheers!
Dave
  ----- Original Message ----- 
  From: scaevola637 
  To: [email protected] 
  Sent: Thursday, March 10, 2005 10:38 AM
  Subject: [AspNetAnyQuestionIsOk] Re: VB.Net to C# Conversion Question



  Thanks,
  it works

  --- In [email protected], "Peter Brunone" 
  <[EMAIL PROTECTED]> wrote:
  > 
  >    I believe the equivalent is "\n" (newline character), but there 
  may be an additional character for the CrLf.  Give it a shot and see 
  if that does it.
  > 
  > From: "scaevola637" [EMAIL PROTECTED]
  > 
  > How do you remove Carriage Return Line Feeds (vbCrLf) from a 
  string 
  > in C#? 
  > 
  > 
  > 
  > 
  > [Non-text portions of this message have been removed]




        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to