避免被软件识别的验证码生成

 用法为新建一个空页面,清除掉页面上的HTML;然后复制一下代码到页面中

用法

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 protected void Page_Load(object sender, EventArgs e)
{
string randomcode = CreateRandomCode(4);
Session["Code"] = randomcode;
//v.CreateValidateGraphic(Page, Session["Code"].ToString());
this.CreateImage(randomcode);
}

原文地址:https://www.cnblogs.com/tianxuan/p/4733413.html