protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            CaptchaReference.ServiceClient fromService = new CaptchaReference.ServiceClient();
            string myStr, userLen;

            if (Session["generatedString"] == null)
            {
                if (Session["userLength"] == null)
                {
                    userLen = "3";
                }
                else
                {
                    userLen = Session["userLength"].ToString();
                }
                myStr = fromService.GetVerifierString(userLen);
                Session["generatedString"] = myStr;
            }
            else
            {
                myStr = Session["generatedString"].ToString();
            }

            Stream myStream = fromService.GetImage(myStr);

            System.Drawing.Image myImage = System.Drawing.Image.FromStream(myStream);
            Response.ContentType = "image/jpeg";
            myImage.Save(Response.OutputStream, ImageFormat.Jpeg);
        }
        protected void btnShowImage_Click(object sender, EventArgs e)
        {
            CaptchaReference.ServiceClient fromService = new CaptchaReference.ServiceClient();
            string userLength = "5";

            Session["userLength"] = userLength;
            string myStr = fromService.GetVerifierString(userLength);

            Session["generatedString"] = myStr;
            btnShowImage.Text          = "Show Me Another Image String";
            Image1.Visible             = true;
        }