Home
About
Contact
Categories
Classic ASP (32 - Entries)
CSS (1 - Entry)
JavaScript (5 - Entries)
Databases (30 - Entries)
ASP.NET (26 - Entries)
Delphi (6 - Entries)
Windows Server Core (12 - Entries)
VMWare (1 - Entry)
Code Editing Tools (2 - Entries)
Linux (4 - Entries)
Dell Servers (15 - Entries)
Blog Entries
2025 (3 - Entries)
Bug Reports
(Bugs Fixed
CFFCS Coding Source
Please report any errors to the [
Contact
] page. Thank you.
Classic ASP (32)
CSS (1)
JavaScript (5)
Databases (30)
ASP.NET (26)
Delphi (6)
Windows Server Core (12)
VMWare (1)
Code Editing Tools (2)
Linux (4)
Dell Servers (15)
Tools
Format Your SQL Script
Minify your CSS
Resources
[View The Source Code For This Project]
ASP.NET
C#
No Captcha ReCaptcha 2.0 with ASP.NET (C# Version)
Live Editing Disabled for Server-Side Example
HTML
Load.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Load.aspx.cs" Inherits="Load" %>
Name
<% 'You will need to 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."; } }
Resources
(Copy JS and CSS code below, and add it to your project. It is best to download and host from within your site. This will reduce bandwidth drain from your hosting server and the servers hosting the actual files.)
https://www.google.com/recaptcha/api.js
Preview
Tags
stop bots and minimize spammers
stop bots and minimize spammers
No Captcha ReCaptcha 2.0 with ASP.NET using C#
No Captcha ReCaptcha 2.0 with C# ASP.NET