如何在Kentico CMS 7.0 aspx页面中添加Captcha Control [英] How do I add in Captcha Control in a Kentico CMS 7.0 aspx page
问题描述
按照上述主题。
我确实添加了CMSFormControls内置的Captcha控件。
但收到错误
[加载'MyCaptcha'类型的WebPart'MyCaptcha'时出错]
无法将'ASP.cmsformcontrols_captcha_Captcha_Simple_aspx'类型的对象强制转换为'CMS.PortalControls.CMSAbstractWebPart'。
我已经尝试了一整天。
添加一个名为SecurityCode的字段。
一切都行不通。
那里有人知道这个问题吗?
或
如果有另一种解决方法吗?
谢谢你
As per subject above.
I did add the built in Captcha control from CMSFormControls.
But receiving error
[Error loading the WebPart 'MyCaptcha' of type 'MyCaptcha']
Unable to cast object of type 'ASP.cmsformcontrols_captcha_Captcha_Simple_aspx' to type 'CMS.PortalControls.CMSAbstractWebPart'.
I already tried the entire day.
Adding a field named as SecurityCode.
All wasn't working.
Do any guys out there know the issue?
or
If there another workaround?
Thank you
推荐答案
你不能将验证码控制转换为CMSAbstractWebPart,因为它是一个FormEngineUserControl而不是webpart。
因为你试图将一个验证码控件添加到一个页面,我想你有一个在线表格(以前称为BizForm)。然后你必须在该表单中添加一个新字段,并选择它作为验证码控件之一的类型。
You can't cast captcha control to CMSAbstractWebPart because it is a FormEngineUserControl not a webpart.
Because you try to add a captcha control to a page I suppose you have a on-line form(formerly BizForm) on it. Then you have to add a new field to that form and select it's type as one of the captcha controls.
这篇关于如何在Kentico CMS 7.0 aspx页面中添加Captcha Control的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!