I would like to use Server.UrlEncodein .ashx.
I am trying to use the following code.
HttpServerUtility ser = new HttpServerUtility();
ser.UrlEncode(pfile.FileName);
This is wrong, but nonetheless, I would like to use Server.UrlEncode, so let's find out the way.
source
share