When% 20 characters appear between url parameters, my MVC routing stops reading the string.
Why is this, and how can I approach the processing of the characters "% 20" in my URL?
URL example
http://localhost:40494/ListContents/Delete/asdf%20/5430f394... public ActionResult Delete(string DNSName, Guid id) {...} routes.MapRoute( "Delete", // Route name "ListContents/Delete/{DNSName}/{id}", // URL with parameters new { controller = "ListContents", action = "Delete" } // Parameter defaults );
However, both of the following URLs are working fine
http://localhost:40494/ListContents/Delete/asdf%20SOMETHING_HERE/5430f394... http://localhost:40494/ListContents/Delete/%20asdf/5430f394-946c-4f82-ac13-9d5efafe9127
source share