|
-
Aug 20th, 2004, 09:03 AM
#1
Thread Starter
New Member
Create Image on the Fly and use in the TableCell's background-image
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
-
Aug 20th, 2004, 12:46 PM
#2
I wonder how many charact
you're missing the url attribute....
td.Style["background-image"] = "url(myAspPageWithImageProcessing.aspx)";
-
Aug 20th, 2004, 01:12 PM
#3
Thread Starter
New Member
Thanks for the reply nemaroller, but I already tried using the URL too and it still wouldnt show the image.
-
Aug 20th, 2004, 01:17 PM
#4
Thread Starter
New Member
Never mind, I am an idiot, it DOES work, thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|