public void ProcessRequest(HttpContext Context) { VerifyCode vc = new VerifyCode(); vc.FontSize = 11; vc.Padding = 3; vc.CreateImageOnPage(vc.CreateForWordCode(), Context); }
public void ProcessRequest(HttpContext Context) { VerifyCode v = new VerifyCode(); string code = v.CreateVerifyCode(5);//验证码长度 v.CreateImageOnPage(code, Context); }