Dear All,
We have a public web site which is build under sharepoint 2010 and we use the NetAdvantage Captcha as a part of our contact form.
The captcha is work fine if the form is accessed anonymously , but if someone login on the site and access the form , they get Async request failed error when they press the refresh button on the captcha control.
kind regard
Peter Tabangan
Hello Peter,
Could you share the mark-up you have for that specific webpart? I’ve tested this on my side on Shrapoint 2010 with a simple captcha control:
<ig:WebCaptcha ID="WebCaptcha1" runat="server">
</ig:WebCaptcha>
But I didn’t encounter a similar issue. Generally the refresh button will trigger a ajax request during which a new image will be loaded.
Does only the postback initiated by the captcha’s refresh button trigger this issue or does any postback on the page lead to the same issue?
I’m looking forward to your reply.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support
Hi Maya,
I already did that but the error is still exist , the thing is I only encounter error when the component is access by the authenticated user and not by anonymouse user
Do you have any code blocks in the page like: <%=… %> ?
If so you could try changing them to: <%#… %>.
Let me know if that helps.
Thank you for your response and sorry for the late reply :)
below are the information that you are looking
version : 12.1.20121.2072
assembly :Infragistics35.Web.v12.1
ERROR
[HttpException]: The Controls collection cannot be modified vevause the control contains code block (i.e. < ... %>).
at System.Web.UI.ControlCollection.Add(Control child)
at
Microsoft.SharePoint.Publishing.PublishingLayoutPage.Onload(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsuncPoint, Boolean includeStageAfterAsyncPoint)
[HttpUnhandleException]: Exception of type
'System.Web.HttpUnhandledException' was thrown.
at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStageBeforeAsyncPoint, Boolean includeStageAfterAyncPoint)...........
thanks
Hello Peter ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Developer Support Engineer