title: asp.net replace special character '\'
body: <p>I have a string ,it gives a source path from a png image ex:</p>
  
  <pre><code>C:\pictures\picture1.png
  </code></pre>
  
  <p>But I will replace the '\' character to '\ \' (two \ character )with this line :</p>
  
  <p>my data is <code>C:\pictures\picture1.png</code></p>
  
  <pre><code> public string rep(string data) 
          {
              data.Replace('\','\\');
              return data;
          }
  </code></pre>
  
  <p>when I rite data.Replace('\','\') the next characters after '\' comes to description line what can I do I must use the file source so :</p>
  
  <pre><code>C:\\pictures\\picture1.png
  </code></pre>