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
VB.NET
No Captcha ReCaptcha 2.0 with ASP.NET (VB Version)
HTML
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Load.aspx.vb" 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 Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim strname As String = name.Text Dim captcha As String = Request.Form("g-recaptcha-response") 'Next we are going to make sure that each form variable has a value (Meaning: Filled out) If strname = "" Then 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. ElseIf captcha = "" Then 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 (VB Version) / Jquery reCAPTCHA 2.0
demo." End If End Sub
Preview
Tags
No Captcha ReCaptcha 2.0 with ASP.NET
No Captcha ReCaptcha 2.0 with VB.NET
stop bots and minimize spammers