Equivalent of HttpUtility.UrlEncode in Windows form.

  • Thread starter Thread starter Muscha
  • Start date Start date
M

Muscha

Hi,

On an ASP.Net I can use UrlEncode() method to encode a URL that I want to
forward using respnose.redirect, what's the equivalent of this in Windows
Form? I want to be able to do open a webbrowser with a URL as a query
parameter.

Thanks,

/m
 
Hello

You can reference System.Web assembly in your Windows Forms project and call
the static method HttpUtility.UrlEncode() .
Calling this method doesn't require being run as a web page, you can call it
from a windows forms, console or service application.

Best regards,
Sherif
 
Back
Top