By default the asp.net image control trys to be helpful and automatically encodes anything set to the ImageUrl property, so:
imgSomething.ImageUrl = "Generator.aspx?x=1&y=2&z=3";
Becomes
"Generator.aspx?x=1&y=2&z=3"
The problem is I want to pass Base64 encoded parameters, which I need to manually Server.UrlEncode because each one can contain charater that'll cause problems otherwise.
So basically my question is: How do I stop the Image control from automatically UrlEncoding what I set to the ImageUrl parameter?