App_Code.Controls.RecaptchaControl.OnUnload C# (CSharp) Method

OnUnload() protected method

Raises the E:System.Web.UI.Control.Unload event.
protected OnUnload ( EventArgs e ) : void
e System.EventArgs /// An object that contains event data. ///
return void
        protected override void OnUnload(EventArgs e)
        {
            if (this.RecaptchaLoggingEnabled)
            {
                if (!this.Page.IsCallback)
                {
                    this.PageLoadTime = DateTime.Now;
                    this.RecaptchaAttempts = 0;
                }

                this.RecaptchaRenderTime = DateTime.Now;
            }

            base.OnUnload(e);
        }