【发布时间】:2013-11-12 21:02:41
【问题描述】:
我将我的 MVC3 应用程序从 aspx 转换为 Razor,我正在使用 Captcha;在我使用的 aspx 中:
<%@ Register TagPrefix="cc1" Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" %>
在 Razor 项目中,我将寄存器移至 web.config:
<system.web>
<pages>
<controls>
<add assembly="WebControlCaptcha" namespace="WebControlCaptcha" tagPrefix="cc1" />
</controls>
</pages>
</system.web>
很遗憾,验证码图像没有显示,任何建议。谢谢。
【问题讨论】:
-
如何在页面上嵌入验证码助手?
-
我确实使用过:
。这是错误的!
标签: asp.net-mvc razor captcha