Hi computer_guy
> My problem is that report.aspx has to pass a lot of data to
> charting.ashx, so much that it cannot be passed into Chart.apsx with
> HTTP GET. I don't think you can do HTTP POST on the <img> tag. I am
> thinking to store the data to a temp file and pass the file name in
> (<img src="Charting.ashx?tempfile=...">), but this is messy and it is
> a problem to clear temp files.
where is the orgin of the data, that you`ll put on the querystring?
the usually way is to put a ID on the querystring, and grabbing the data
within
the Handler.

Signature
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
computer_guy - 20 Jul 2007 16:37 GMT
> Hi computer_guy
>
[quoted text clipped - 13 lines]
> Gruss, Peter Bucher
> Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp://www.aspnetzone.de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone.de/blogs/peterbucher/- Auf den Spuren von .NET
Hi Peter,
The data that I want to put on the querystring is dynamically
generated by the host page. It is not stored anywhere. The host page
report.aspx does the following in sequence:
1. Generate data from some complicated algorithm
2. Pass this generated data to chart.aspx to display it as an inline
image.
3. Show this same data in HTML tables.
Thanks a lot,
computer_guy
Peter Bucher [MVP] - 20 Jul 2007 18:46 GMT
hi computer_guy
> 1. Generate data from some complicated algorithm
> 2. Pass this generated data to chart.aspx to display it as an inline
> image.
> 3. Show this same data in HTML tables.
Okay, thats not an easy situation :-)
My approach would be, to give the HttpHandler two possible parameters.
One of them for example called "htmldata" and the other "imagedata".
The Handler gives by de passed parameter the htmldata for the grid,
or the image data for the image back.
i dont know whether you only can generate the data in your aspx site, or
also in the Handler.
Otherwise, i would save this data temporary on the physical disk.

Signature
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
computer_guy - 21 Jul 2007 00:10 GMT
> hi computer_guy
>
[quoted text clipped - 17 lines]
> Gruss, Peter Bucher
> Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp://www.aspnetzone.de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone.de/blogs/peterbucher/- Auf den Spuren von .NET
I ended up using a good old temporary file to pass the data. Thanks
for your help.