Hi All.

In the past when I needed to set the ImageUrl property of the Image Web control, I could create another page where I would create/get an image dynamically and the response write it with a MemoryStream object to the page: something like this:

<asp:Image ImageUrl="myAspPageWithImageProcessing.aspx" runat="server"></asp:Image>

Now I want to do a similar task, the only difference is I need to assign an image to the background of the TableCell something like this (in the code behind):

td.Style["background-image"] = "myAspPageWithImageProcessing.aspx";

but this doesn't work.

Has anyone else ever needed to achieve this ?


Thank you