4/12/2011 2:09:18 AM
RE:Captcha fails first time
Thank you for the info.
Version - yes, that's <major>.<minor> version number, followed by 4-digid build number (reflects the bin DLLs version).
I think the country selector in your BizForm might be cause of this issue. That's because it causes partial postback, when some country (state) is selected. Captcha code refreshes itself after this action (and by default generates new number), however it's not rendered again.
Could you please try to set private bool mGenerateNumberEveryTime = true to false in ~\CMSFormControls\SecurityCode.ascx.cs file?
Alternatively, you could add a test for asynchronous postback to the following condition instead:
// Regenerate security code if it is not valid after postback
if (RequestHelper.IsPostBack() && !IsValid() && GenerateNumberEveryTime && !RequestHelper.IsAsyncPostback())
Hope it will help.