title: Percentage Encoding of special characters before sending it in the URL
body: <p><br/></p>
  
  <p>I need to pass special characters like #,! etc in URL to Facebook,Twitter and such social sites. For that I am replacing such characters with URL Escape Codes.<br/></p>
  
  <pre><code> return valToEncode.Replace("!", "%21").Replace("#", "%23")
     .Replace("$", "%24").Replace("&amp;", "%26")
     .Replace("'", "%27").Replace("(", "%28")
     .Replace(")", "%29").Replace("*", "%2A");
  </code></pre>
  
  <p>It works for me, but I want to do it more efficiently.Is there any other way to escape such characters? I tried with <strong>Server.URLEncode()</strong> but Facebook doesn't render it.</p>
  
  <p>Thanks in advance,<br/>
  Priya</p>