If I have a string like
"Hello world"
Whats an easy way to encode the string (URL encoding style) so when printed it reads
"Hello%20world".
Using C# and .NET?
If I have a string like
"Hello world"
Whats an easy way to encode the string (URL encoding style) so when printed it reads
"Hello%20world".
Using C# and .NET?
string encoded = System.Web.HttpUtility.UrlEncode( "Hello World" );
Never used that method, maybe the call needs some tweaking
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.