一.指定Handler方式 1.添加Handler一般处理程序 2.PicHandler.ashx源码如下: 需要的引用: using System; using System.Collections.Generic; using System.Linq; using System.Web;using System.Drawing;using System.IO; public class PicHandler: IHttpHandler { //图片路径 string IMG = "~/Pro…