asp.net mvc 验证码
/// <summary>
/// 生产验证码
/// </summary>
/// <returns></returns>
[OutputCache(Duration = 0)]
public ActionResult CreateCode()
{
string code = ValidateCodeManage.CreateValidateCode(4);
Session["code"] = code;
//二进制 ValidateCodeManage.CreateValidateGraphic(code)
return File(ValidateCodeManage.CreateValidateGraphic(code), @"image/jpeg");
}