Donate

How To Decode An Encoded URL In C#.NET

The code below illustrates how to decode an encoded url using HttpUtility.UrlDecode(string url)
 using System.Web;   
  //make sure to add reference to System.Web  
  string temp_url = "http%3a%2f%2fplacement.emploiquebec.net%2f"  
        + "mbe%2fut%2fsuivroffrs%2fapercoffr.asp"  
        + "%3fnooffr%3d3053675%26page%3drech%26prov%  
  3derechroffr%252Easp%26CL%3denglish";  
  string url = HttpUtility.UrlDecode(temp_url); 

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.