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

 用法为新建一个空页面,清除掉页面上的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);
}

posted @ 2015-08-16 00:02  tianqi123  阅读(178)  评论(0编辑  收藏  举报