Welcome![Sign In][Sign Up]
Location:
Search - vcode.p

Search list

[WEB Codevcode

Description: 很好的验证码生成程序。使用方法: picid = Request.QueryString["time"].ToString().Trim() picid =Math.Round((Convert.ToDouble(picid)*10000),0).ToString() Tools.image.VerifyImage pic = new Tools.image.VerifyImage(picid, 90, 50) System.IO.MemoryStream ms = new System.IO.MemoryStream() pic.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png) Response.ClearContent() Response.ContentType = "image/png" Response.BinaryWrite(ms.ToArray()) Response.Cookies["Vcode"].Value = picid -Verification Code to generate a good program. Usage: picid = Request.QueryString [ time ]. ToString (). Trim () picid = Math.Round ((Convert.ToDouble (picid)* 10000), 0). ToString () Tools.image.VerifyImage pic = new Tools.image.VerifyImage (picid, 90, 50) System.IO.MemoryStream ms = new System.IO.MemoryStream () pic.Image.Save (ms, System.Drawing.Imaging.ImageFormat.Png) Response.ClearContent () Response.ContentType = image/png Response.BinaryWrite (ms.ToArray ()) Response.Cookies [ Vcode ]. Value = picid
Platform: | Size: 5120 | Author: pipi | Hits:

CodeBus www.codebus.net