我是asp.net mvc4的新手,我已经在asp.net mvc4框架中安装了Capchamvc4软件包。如何在视图页面中获取已安装的软件包,请帮助我。提前谢谢。
答案 0 :(得分:0)
在您的视图中尝试此操作
@using Recaptcha
@{
Recaptcha.RecaptchaControlMvc.PublicKey = "PublicKey";
Recaptcha.RecaptchaControlMvc.PrivateKey = "PrivateKey";
}
@Html.Raw(@Html.GenerateCaptcha("captcha", theme: "clean"))