Last post May 14, 2009 11:18 PM by Nai-Dong Jin - MSFT
May 11, 2009 08:12 AM|zazabazulla|LINK
i have worked out a bitmap image drawn by GDI/Text - and works fine. the problem is that i would like that image to be on a particular panel or any other control in my asp.net page.is there any way to do it?
May 11, 2009 11:34 AM|SGWellens|LINK
You can setup a CSS class with a background image and then apply it to any element:
<head id="Head1" runat="server">
<title>War and Peace</title>
May 11, 2009 11:47 AM|zazabazulla|LINK
the problem is not uploading a jpg, but to upload a dynamically creating graphics/text GDI into a panel.
this does not work... panel1.image = ???;
May 14, 2009 11:18 PM|Nai-Dong Jin - MSFT|LINK
Do you mean you want to add the image into the ASP.NET panel control, right?
If so, after you draw the contents onto your image, you may save the image and create an ASP.NET Image control, and then, add the image control into the control collection of that Panel control by using Panel.Controls.Add().