BotDetect 2.0 ASP.NET CAPTCHA Sample Projects
The BotDetect 2.0 ASP.NET CAPTCHA installations include 5 samples which can help you get started with integrating BotDetect in your applications. Each sample comes in both the C# and the VB.NET version.
Installation
By default, the samples are installed at
C:\Program Files\Lanapsoft\BotDetect\ASP.NET 2.0\v2.0\Samples\.
You can also run them from the Start Menu:
Programs > Lanapsoft > BotDetect > ASP.NET 2.0 > v2.0 > Samples.
Before you can start using them, you should run the 1st Install the Samples.bat script from the same Start Menu folder, which will create the virtual folders and configure the samples as IIS applications using the appropriate version of the ASP.NET runtime.
This next section contains a short description of each sample.
BotDetect Demo
This sample contains the minimum of code required to show a CAPTCHA on a ASP.NET page and validate the user input. It can be used as a starting point when you are first learning how to use BotDetect. It is equivalent to the result you will get if you are following the How To use BotDetect ASP.NET CAPTCHA in Visual Studio 2005 instructions.
BotDetect Features Demo
Instead of demonstrating typical real-world CAPTCHA behavior, this sample allows you to easily experiment with all BotDetect parameters and their combinations. It can be used to determine the best CAPTCHA to use for your needs, as well as showing how to set all Captcha control properties dynamically in your code. It is equivalent to the BotDetect Online Demo.
BotDetect MS Ajax Demo
This sample shows the modifications in the BotDetect Demo code required to make it work inside an ASP.NET 2.0 Ajax UpdatePanel. It can be used when migrating BotDetect-protected forms to Ajax. It also demonstrates how to improve the perceived CAPTCHA validation speed and, consequentially, the user experience by using an Ajax CAPTCHA.
BotDetect Random Demo
This sample shows how you can easily randomize various Captcha control parameters. It also includes the RandomizationHelper class which you can re-use in your projects for easy randomization of all Captcha control parameters. Randomly using different CAPTCHA algorithms and other parameter values can significantly improve the CAPTCHA security, as explained here and here. This is the best way to take full advantage of the 50 different algorithms shipped with BotDetect.
BotDetect Troubleshooting Demo
This sample expands the BotDetect Demo code to use built-in error logging to troubleshoot BotDetect issues. It can be used as a foundation for effective diagnosis and resolution of any problems you might encounter on your servers. It is equivalent to the result you will get if you are following the How to log internal BotDetect errors to a text file instructions. It also allows you to simulate an exception in BotDetect code and test how it will be logged and handled. Based on the log4net project.