首先在静态页面里面有一个img(存放验证码) 其中src="HandlerCheck.ashx" ; 在HandlerCheck.ashx中将处理好的 带有随机数字字母的图片返回 HttpContext.Current.Response.ContentType = "image/Png"; HttpContext.Current.Response.BinaryWrite(ms.ToArray()); 能够得到 静态页面里面的Img 可以得到 想要的图片
首先在静态页面里面有一个img(存放验证码) 其中src="HandlerCheck