CAPTCHA Code
Add new aspx page named captcha_image.aspx using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Drawing; public partial class CAPTCHA_Image : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { System.Drawing.Bitmap objbmp = null; System.Drawing.Graphics objgraphics = null; Font objFont = null; try { objbmp = new System.Drawing.Bitmap(60, 20); //objgraphics = New System.Drawing.Graphics; objgraphics = System.Drawing.Graphics.FromImage(objbmp); objgraphics.Clear(Color.Green); objgraphics.TextRenderingHint = objgraphics.TextRenderingHint; objFont = new Font("Arial", 10, FontStyle.Bold); string randomStr = ...