Home
About
Contact
Categories
Classic ASP (28 - Sub-Categories)
CSS (1 - Sub-Category)
JavaScript (4 - Sub-Categories)
Databases (22 - Sub-Categories)
ASP.NET (23 - Sub-Categories)
Delphi (5 - Sub-Categories)
Windows Server Core (3 - Sub-Categories)
VMWare (1 - Sub-Category)
Code Editing Tools (2 - Sub-Categories)
Linux (2 - Sub-Categories)
Dell Servers (15 - Sub-Categories)
Bug Reports
(Bugs Fixed
New CFFCS Coding Source is still in Beta
Please report any errors to the [Contact] page. Thank you.
Classic ASP (28)
CSS (1)
JavaScript (4)
Databases (22)
ASP.NET (23)
Delphi (5)
Windows Server Core (3)
VMWare (1)
Code Editing Tools (2)
Linux (2)
Dell Servers (15)
Resources
[View The Source Code For This Project]
Format SQL Script
ASP.NET
C#
No Captcha ReCaptcha 2.0 with ASP.NET (C# Version)
HTML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Load.aspx.cs" Inherits="Load" %>
Name
<% //You will need the new reCaptcha 2.0 Site Key for this. //Go here: https://www.google.com/recaptcha/admin //And add a new Site Key for your website. //For local testing, you will have to test with //local/site.asp //127.0.1/site.asp //It will not work with a static IP Address as I would prefer. %>
ASP.NET
Button1_Click
protected void Button1_Click(object sender, EventArgs e) { String strname = name.Text; String captcha = Request.Form["g-recaptcha-response"]; //Next we are going to make sure that each form variable has a value (Meaning: Filled out) if (strname == null || strname == "") { Label1.Text = "Please provide your name"; //next, we are going to challange the reCaptcha, to make sure that it is not blank, //and there is NO way around this. If it is not blank, then we send them a message. } else if (captcha == null || captcha == "") { Label1.Text = "You have not completed the
reCAPTCHA
Please click on the blank box.
Thanks You"; } else { // If the user has completed the reCaptcha, then we send a message letting them know.; Label1.Text = "Thank you for trying out the
ASP.NET (C# Version) / Jquery reCAPTCHA 2.0
demo."; } }
Preview
Tags
No Captcha ReCaptcha 2.0 with ASP.NET using C#
No Captcha ReCaptcha 2.0 with C# ASP.NET
stop bots and minimize spammers