Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@using System.Configuration
<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
$(document).ready(function () {
captcha();
});
function captcha() {
Recaptcha.create("@(ConfigurationManager.AppSettings["recaptchaPublicKey"])", "captcha",
{
theme: "red", callback: Recaptcha.focus_response_field
});
}
</script>
<div id="target">
@Html.Partial("Form")
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.