用法为新建一个空页面,清除掉页面上的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);
}
时间: 2024-12-15 04:18:21