Hello All
I have an image control in main.aspx in a method
BuildImage()
{
//...code..
imgDisks.ImageU rl = "barChart.aspx" ;
}
This is called whenever the user Clicks on Submit button:
In barChart.aspx I do:
private void Page_Load(objec t sender, System.EventArg s e)
{
Chart chart = getChart();
Bitmap bitmap = new Bitmap(chart.Wi dth, chart.Height,
PixelFormat.For mat32bppArgb);
Graphics g = Graphics.FromIm age(bitmap);
chart.draw(g);
MemoryStream stream = new MemoryStream();
bitmap.Save(str eam, ImageFormat.Png );
Response.Clear( );
Response.Conten tType = "image/png";
Response.Binary Write(stream.To Array());
g.Dispose();
}
However I still have to sometimes click on submit twice to get the new
image. Any pointers on what might be happening are greatly
appreciated.
thanks
Sunit
sj****@ingr.com