<img src="/{Controller}/ShowCaptchaImage" alt="Captcha" width="238" height="53"/>
public CaptchaImageResult ShowCaptchaImage() { //return new CaptchaImageResult(); Session["CaptchaImageText"] = GetCaptchaString(6); CaptchaImageResult ci = new CaptchaImageResult( this.Session["CaptchaImageText"].ToString(), 200, 50, "Century Schoolbook"); this.Response.Clear(); this.Response.ContentType = "image/jpeg"; ci.Image.Save(this.Response.OutputStream, ImageFormat.Jpeg); ci.Dispose(); return ci;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)