Annshuk / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

if .net recaptcha control implement in 2nd asp WizardStep if will give vlidation error when 2nd page loading #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add recaptcha control in 2nd or 3rd step in asp WizardStep
2. it will give validation error when step loading

What is the expected output? What do you see instead?
no validation error, i will get validation error

What version of the product are you using? On what operating system?
i used latest version download from your svn and os will not matter for
this since its a logic error

Please provide any additional information below.
as a quick fix i change following property in recaptchaControl.cs

        public bool IsValid
        {
            get
            {
                if (Page.IsPostBack && Visible && Enabled &&
!this.skipRecaptcha)
                {
                    if (this.recaptchaResponse == null)
                    {
                        return true; // add return true
                        //this.Validate(); comments this
                    }

                    return this.recaptchaResponse != null &&
this.recaptchaResponse.IsValid;
                }

                return true;
            }

            set
            {
                throw new NotImplementedException("This setter is not
implemented.");
            }
        }

Original issue reported on code.google.com by isuru.sampath%ratnayake.info@gtempaccount.com on 24 Sep 2009 at 7:35

GoogleCodeExporter commented 8 years ago

Original comment by adrian.g...@gmail.com on 1 Dec 2010 at 10:44

GoogleCodeExporter commented 8 years ago

Original comment by adrian.g...@gmail.com on 30 Mar 2012 at 6:17