http://code.google.com/p/recaptcha/downloads/list?q=label:aspnetlib-Latest
2.then add a reference of the downloaded Recaptcha.dll
file to your website
3.then insert the recaptcha control to your aspx page
by adding at top-
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
then under form tag -
<recaptcha:RecaptchaControl ID="recaptcha" runat="server"
PublicKey="" PrivateKey=""/>
4.then sign up for API key here -
http://recaptcha.net/api/getkey?app=aspnet.
after that place the public key and private key
in the PublicKey and PrivateKey properties in the above code
5.add the follwing lines too under your form tag in your page -
<form runat="server">
<asp:Label Visible=false ID="lblResult" runat="server" />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
</form>
6.add the following button click method in code behind file
of your page -
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
lblResult.Text = "You Got It!";
}
else
{
lblResult.Text = "Incorrect";
}}
now test your page recaptcha.also read the following post
to overcome updatepanel problem -
http://weblogs.asp.net/alessandro/archive/2008/09/09/
automatically-reload-recaptcha-when-postingback-via-a-partial-refresh-updatepanel.aspx