I Hate Microsoft

My feelings for MicroSoft vary by the hour. Sometimes I love them, sometimes I hate them. Just depends on my mood and what idiotic things that they have been up to. Today for instance I have been working on some software. What I have been trying to do is convert a string like
“Darryl Smith Was Here”
to
“Darrryl%20Smith%20Was%Here”

That is, I wanted to convert spaces to other characters that the other end of a communications link could work out. Sounds Simple doesnt it? Well, I wanted to do this the right way, and there are other characters that I should not use over this link. I have been searching and searching for the right solution.

A few times I came up with
url = HttpUtility.HtmlEncode(url)
But it didn’t work. It could not find HttpUtility for some reason. Usually at the top of the document you need to add something like
#Imports system.web
But in this case, that did not work. I could not work it out… Then I finally found a site that said Microsoft forgot to get some things to work automatically. HttpUtility was one of them. To get it to work all you have to do is “Add Reference” to System.Web.DLL

Anyway enough technical stuff… Time for a run.

Music: