Simple question that we’ve spent to much time on. We have a server side function that creates a URL for an image (similar to a gravatar identicon), but it’s output is being html endcoded, which is probably causing a few issues.
...
<asp:image ID="Image1" runat="server" ToolTip='<%# Eval("UserID") %>' ImageUrl= '<%= GetURL(Eval("UserID").ToString()) %>'></asp:image>
...
We end up with:
<img id="Image1" title="123456789" src=""http://www.ourwebsite.com/image/123456789&s=128&s=identity&p=userid"/>
One way you can avoid encoding by assigning image url in the code behind like this:
Image1.ImageUrl = GetURL(userId);