Equivalent of HttpUtility.UrlEncode in Windows form.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Muscha

    Equivalent of HttpUtility.UrlEncode in Windows form.

    Hi,

    On an ASP.Net I can use UrlEncode() method to encode a URL that I want to
    forward using respnose.redire ct, 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


  • Sherif ElMetainy

    #2
    Re: Equivalent of HttpUtility.Url Encode in Windows form.

    Hello

    You can reference System.Web assembly in your Windows Forms project and call
    the static method HttpUtility.Url Encode() .
    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

    "Muscha" <muscha@no.spam .net> wrote in message
    news:eanM2PsuDH A.3196@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hi,
    >
    > On an ASP.Net I can use UrlEncode() method to encode a URL that I want to
    > forward using respnose.redire ct, 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
    >
    >[/color]


    Comment

    Working...