全文预览

网站注册与登录系统报告

上传者:蓝天 |  格式:doc  |  页数:11 |  大小:828KB

文档介绍
String(checkCode, f, b, 3, 3);Р Pen blackPen = new Pen(Color.Blue, 0);Р Random rand = new Random();Р for (int i = 0; i < 2; i++)Р {Р int y = rand.Next(image.Height);Р g.DrawLine(blackPen, 0, y, image.Width, y);Р }Р for (int i = 0; i < 150; i++)Р {Р int x = rand.Next(image.Width);Р int y = rand.Next(image.Height);Р image.SetPixel(x, y, Color.FromArgb(rand.Next()));Р }Р Р System.IO.MemoryStream ms = new System.IO.MemoryStream();Р image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);Р Response.ClearContent();Р Response.ContentType = "image/Jpeg";Р Response.BinaryWrite(ms.ToArray());Р g.Dispose();Р image.Dispose();Р }Р }Р5.3、实现的界面如下:Р5.4、用到的控件如下:Р控件类型Р空间名称Р用途РTextBox控件РTextnameР会员名РTextpassР密码РTextbosyzmР验证码РButton控件РButton1Р登录РButton2Р重置РImage控件РImage1Р显示验证码РlinkButton控件РlinkButton1Р链接注册页面

收藏

分享

举报
下载此文档