Skip to content

Instantly share code, notes, and snippets.

@umair-me
Created October 1, 2013 13:15
Show Gist options
  • Save umair-me/6778253 to your computer and use it in GitHub Desktop.
Save umair-me/6778253 to your computer and use it in GitHub Desktop.
recaptcha not working in asp.net
protected void Button1_Click(object sender, EventArgs e)
{
Page.Validate(); <--- you need this
if (Page.IsValid)
{
lblResult.Text = "All Good";
}
else
{
lblResult.Text = "The words you entered are incorrect";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment