Anyone know what the difference is between imagegen.aspx and imagegen.ashx ?, I've had some developers using imagegen.aspx to create thumbnails which appear to be working OK but has been causing some very weird problems on some PC's (not browser specific) whereby the thumbnails would initially load OK but on subsequent page refreshes the imagegen just seems to hang. Replacing the imagegen.aspx call with imagegen.ashx call resolves the problem for all the affected PC's.
In the very first versions of ImageGen I used an aspx file. I later changed to .ashx because it has a bit less overhead. I included the .aspx in the package for a while to help people make the transition. That is, if they had the earliest versions and upgraded they wouldn't have to change their macros immediately to use the .ashx, though that was recommended.
For quite some time now only the .ashx has been included and no testing with the .aspx has been done. The .aspx shouldn't be used.
imagegen.aspx imagegen.ashx
Hi,
Anyone know what the difference is between imagegen.aspx and imagegen.ashx ?, I've had some developers using imagegen.aspx to create thumbnails which appear to be working OK but has been causing some very weird problems on some PC's (not browser specific) whereby the thumbnails would initially load OK but on subsequent page refreshes the imagegen just seems to hang. Replacing the imagegen.aspx call with imagegen.ashx call resolves the problem for all the affected PC's.
Thanks,
Mike
Hi Mike
Yes it is the .ashx file that should be used for generating the images since this is the handler. The .aspx file should not be called.
You can read more about what a handler is here: http://www.15seconds.com/issue/060406.htm
Hope this helps.
/Jan
Hi Jan,
Thanks, I was aware that the handler should be used but wanted to know the purpose of the imagegen.aspx file?
Thanks,
Mike
In the very first versions of ImageGen I used an aspx file. I later changed to .ashx because it has a bit less overhead. I included the .aspx in the package for a while to help people make the transition. That is, if they had the earliest versions and upgraded they wouldn't have to change their macros immediately to use the .ashx, though that was recommended.
For quite some time now only the .ashx has been included and no testing with the .aspx has been done. The .aspx shouldn't be used.
...so now you know the history.
cheers,
doug.
Thanks for the explanation, that's much appreciated. I'll need to check some of our sites to make sure they're using the .ashx.
Cheers,
Mike
is working on a reply...