Posted on: 11/6/2014 8:13:00 PM | Views : 508

Hi,
Am Working in asp.net. I am tryin to implement image resize on the fly and using the below link to get started
http://www.bluelemoncode.com/post/2012/01/12/Optimize-web-page-Resizing-image-using-http-handler-and-custom-server-control.aspx
My code
<%@ WebHandler Language="C#" Class="ImageResizeHandler" %> using System; using System.Web; using System.IO; using System.Drawing; using System.Drawing.Imaging; public class ImageResizeHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { //get image path from querystring string imgPath = context.Request.QueryString["imgPath"]; //get image width to be resized from querystring string imgwidth = context.Request.QueryString["width"]; //get image height to be resized from querystring string imgHeight = co ...

Go to the complete details ...