[Solved] Encode string URL without using HttpServerUtility [duplicate]


var urlAbsoluteSample = "http://stackoverflow.com/questions/34075880/encode-string-url-without-using-httpserverutility?noredirect=1#comment55905829_34075880";
var labelText = "Encoded absolute URL: " + Uri.EscapeDataString(urlAbsoluteSample);

Encoded absolute URL: http%3A%2F%2Fstackoverflow.com%2Fquestions%2F34075880%2Fencode-string-url-without-using-httpserverutility%3Fnoredirect%3D1%23comment55905829_34075880

solved Encode string URL without using HttpServerUtility [duplicate]