A
Ali Khawaja
I have trying to build a control: PieChartControl : System.Web.UI.WebControls.WebContro
in which i am creating a dynamic image based on some data from database
in the render method of the control, I set the content type of image/jpeg
this.Context.Response.ContentType = "image/jpeg"
and then once I am done with creating the image, I save it to the output stream
bmp.Save(this.Context.Response.OutputStream, ImageFormat.Jpeg)
I added it to the toolbar, and dropped on my test form, and its shows characters like its not recognizing the content type
Can anyone please let me know what I am doing wrong
I'll really appreciate any help
Thank
Al
in which i am creating a dynamic image based on some data from database
in the render method of the control, I set the content type of image/jpeg
this.Context.Response.ContentType = "image/jpeg"
and then once I am done with creating the image, I save it to the output stream
bmp.Save(this.Context.Response.OutputStream, ImageFormat.Jpeg)
I added it to the toolbar, and dropped on my test form, and its shows characters like its not recognizing the content type
Can anyone please let me know what I am doing wrong
I'll really appreciate any help
Thank
Al