D
Dave Slinn
I am using various System.Drawing classes to create a graphic at runtime,
with the resulting image varied based on some properties the user may have
set.
Currently I have the graphic being saved to the file system (in a subfolder
of the web app) and then my web control renders a src attrobute to this
graphic file (.png), which works ok at runtime, but this mechanism doesn't
seem to work when viewing the control at design time in Visual Studio. I
did create this control in a Web Control Library project, and referenced the
assembly through my Toolbox, and can now drag and drop instances from there,
but the image displayed on the visual studio designer appears as a broken
graphic (the square with the red X in it).
How can I get the graphic to display properly at design time - can write the
graphic to the Response.OutputStream instead of saving it to the file
system? Any web articles or source code samples pointing me in the write
direction of creating an ASP.NET control that generates an image using the
GDI+ stuff would be most appreciated.
- Dave Slinn
with the resulting image varied based on some properties the user may have
set.
Currently I have the graphic being saved to the file system (in a subfolder
of the web app) and then my web control renders a src attrobute to this
graphic file (.png), which works ok at runtime, but this mechanism doesn't
seem to work when viewing the control at design time in Visual Studio. I
did create this control in a Web Control Library project, and referenced the
assembly through my Toolbox, and can now drag and drop instances from there,
but the image displayed on the visual studio designer appears as a broken
graphic (the square with the red X in it).
How can I get the graphic to display properly at design time - can write the
graphic to the Response.OutputStream instead of saving it to the file
system? Any web articles or source code samples pointing me in the write
direction of creating an ASP.NET control that generates an image using the
GDI+ stuff would be most appreciated.
- Dave Slinn