Bernie Cook's Blog

Azure, C#, .NET, Architecture & Related Tech News


Leave a comment

Adding reCAPTCHA to an ASP.Net Website

I recently implemented a reCAPTCHA control into an ASP.NET website (a Windows Azure web role to be exact) and it was so incredibly easy I thought I’d write a post about it.

In the event that you don’t know what a reCAPTCHA control is Google’s official reCAPTCHA website describe it as:

A CAPTCHA is a program that can tell whether its user is a human or a computer. You’ve probably seen them — colorful images with distorted text at the bottom of Web registration forms. CAPTCHAs are used by many websites to prevent abuse from “bots,” or automated programs usually written to generate spam. No computer program can read distorted text as well as humans can, so bots cannot navigate sites protected by CAPTCHAs. – “What is reCAPTCHA

Continue reading

Advertisements


1 Comment

Azure & Chart Controls: Step-By-Step Integration Guide

I recently integrated the ASP.NET 4 Chart Controls into a Windows Azure Web role. Integrating the charts was easy but getting it up and running in Azure required a few extra steps.

If you know much about the chart controls you know they create the chart image on the fly, and you can very easily configure the control to store the chart image to the server’s disk or to memory temporarily. With Azure the image may be generated by a different Web role instance than the one that has to serve it up so what you end up with, if you use the default setup, is a broken image placeholder instead of your fancy looking chart image. To accommodate this you have to create a custom handler for your Web role which stores, retrieves and deletes the chart image as a blob to your Azure storage container.

Below is a step-by-step guide on what you need to do to get the charts up and running in Azure. Continue reading