Pixie_IT
asked on
encode url string C#
How do i use Server.UrlEncode to firstly remove a '~' and add additional text to the URL? using C#
String MyURL;
MyURL = "http://www.contoso.com/articles.aspx?title=" + Server.UrlEncode("ASP.NET Examples");
Response.Write("<a href=" + MyURL + "> ASP.NET Examples </a>");
MyURL = "http://www.contoso.com/articles.aspx?title=" + Server.UrlEncode("ASP.NET Examples");
Response.Write("<a href=" + MyURL + "> ASP.NET Examples </a>");
string url=System.Web.HttpUtility .UrlDecode ("http:\\www.google.com") + "Append something something";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Unfortunately the wording of the question may have resulted in not gettign the answer we required.
some thing like this would work
Open in new window