title: Replace %20 in Url with - in C#.net web.config
body: <p>I am trying to rewrite the url in C#.net framework=4.0 and visual studio version 2010, I have written following line of code in web.config file, but its not affecting the url. I want to replace the %20 in url with "-"</p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Myrule"&gt;
        &lt;match url="(.)\ (.)" /&gt;
        &lt;action type="Rewrite" url="{R:0}-{R:1}" /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt; 
  </code></pre>
  
  <p>In Chrome it shows %20 and in Mozilla it shows " " space, how do I replace the space with dash "-"?</p>