You must Sign In to post a response.
  • Category: .NET

    I am using C#.net

    I want to replace single quotes with double quotes

    Example

    text = result.Replace(" ' ", " " ");
    When i try this It is not replacing
  • #329831
    Hi Sambathamoorthy ,

    You can try this
    string temp = "Don't no";
    temp = temp.Replace('\'', ' ');
    Response.Write(temp);

    Thanks and Regards,
    Ashwin Kumar H


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.