2

I have a generic handler Image.ashx that crops/resizes images on the fly by reading information from the querystring like Image.ashx?filename=foo.jpg&maxwidth=200&maxheight=300.

Is there a way that I can change the extension of this handler to .jpg? (it always returns jpgs) I'd rather the calls look like this: Image.JPG?filename=foo.jpg&maxwidth=200&maxheight=300?

Greg
  • 8,574
  • 21
  • 67
  • 109

1 Answers1

0

Yes, you can use the routing infrastructure to point image.jpg to image.ashx

Darren Kopp
  • 76,581
  • 9
  • 79
  • 93