About 651,000 results
Open links in new tab
  1. How do I decode a URL that was encoded with MVC's Url.Encode (string url)

    Apr 12, 2013 · An encoded url will automatically be decoded when passed into a controller action. For example: public ActionResult Index(string url) { //url will be decoded here }

  2. HttpUtility.UrlDecode Method (System.Web) | Microsoft Learn

    Converts a string that has been encoded for transmission in a URL into a decoded string. To encode or decode values outside of a web application, use the WebUtility class. Converts a …

    Missing:

    • Controller

    Must include:

  3. URI Encode and Decode in .NET - Code Maze

    Jan 31, 2024 · How to Encode and Decode Using the Uri Class. Alternatively, we can use the Uri class to encode and decode URLs. Instead of UrlEncode() and UrlDecode(), the methods are …

    Missing:

    • Controller

    Must include:

  4. Encode HTML, JavaScript, and URL Query Strings In ASP.NET Core

    You can inject HtmlEncoder, UrlEncoder, and JavaScriptEncoder objects into your controller and then encode the end user input using the required encoder. These classes come from …

  5. c# - URL Encode and Decode in ASP.NET Core - Stack Overflow

    Apr 5, 2021 · We encode reserved characters in a URL and .NET provides a few ways of encoding and decoding. Using the HttpUtility Class var url = …

    Missing:

    • Controller

    Must include:

  6. WebUtility.UrlDecode(String) Method (System.Net)

    The UrlEncode method creates a URL-encoded string. URL decoding replaces hexadecimal escape sequences with corresponding ASCII character equivalents. For example, when …

    Missing:

    • Controller

    Must include:

  7. URL Decode in Web API pipeline doesn't decode %2F to - GitHub

    Jun 30, 2020 · One workaround that could work is to let the pipeline decoding do "half the work", and then run WebUtility.UrlDecode to finish the decoding, but then the plus sign is transformed …

  8. How to Encode and Decode URL in C# - foxlearn.com

    Dec 11, 2024 · To encode a URL, you can use the WebUtility.UrlEncode method. This method will convert special characters in a URL (like spaces, ampersands, etc.) into their corresponding …

    Missing:

    • Controller

    Must include:

  9. c# - URL Parameter encoding in MVC .NET - Stack Overflow

    Oct 3, 2014 · Yes, MVC automatically URL decodes action parameters, but you can still access the URL encoded version through a query string. As you can see in this question: Is MVC2 …

  10. UrlHelper.Encode(String) Method (System.Web.Mvc)

    Encodes special characters in a URL string into character-entity equivalents. public virtual string Encode(string url); abstract member Encode : string -> string override this.Encode : string -> …

  11. Some results have been removed
Refresh