In this post you will see how to create CAPTCHA style image using ActionResult object introduced in April ASP.Net source refresh at code plex
Create CAPTCHAImageActionResult to render generated image with random text
Here is the code of custom action result class which do all the work to generate image .Nice thing about this is back ground color, font color and random text are properties and can be set by controller based color scheme of your web site.

Create Controller action to process request for CAPTCHA image.
Create ASP.Net MVC controller class to generate random text and then to return custom CAPTCHAImageActionResult object. Here is the code how it looks like. In this example I am generating simple random text with some numbers and alphabets

Use in view pages
Now it is time to use this in other view pages, add below line in any of view page. In this example I have used in homepage.
<img alt="CAPTCHA Image" src="<%=Url.Action("Index","CAPTCHAImage") %>"/>
Here is how the screen looks like.

You can download sample code here