Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Using System.Encode() in C#

I need to encode a Uri with a few params and provide values. But I don't want to continue to struggle transating excape characters.

Could someone please explain how to use this?

I have the domain and wo variables:

un=username
ts=timeastamp

Thanks,
newbieweb
Avatar of Nash2334
Nash2334

Server.UrlEncode() and Server.UrlDecode() exist expressly for this purpose.  Encode and send along your querystring, then decode when you request on the other side.
Avatar of curiouswebster

ASKER

How do I use it?
Encode(), not Decode()
I was hoping for an example where you could use Encode with the two variables (and values) I posted above.
ASKER CERTIFIED SOLUTION
Avatar of Nash2334
Nash2334

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!