{STATIC} hippo

...on becoming a great developer...
MCTS: .NET Framework 3.5, ASP.NET Applications
posts - 29, comments - 6, trackbacks - 0

My Links

Twitter

Archives

Post Categories

October 2008 Entries

ASP.NET MVC Captcha

  I was looking for an ASP.NET MVC Captcha control and stumbled upon Nick Berardi's (http://www.coderjournal.com/2008/06/mvc-captcha-for-preview-release-3/). First of all I'm using IIS7 and had trouble getting the HttpHandler to register properly.  I ended up with the following steps to get it to work: Add <add verb="GET" path="captcha.ashx" validate="false" type="ManagedFusion.Web.Handlers.CaptchaImageHandler, ManagedFusion.Web.Captcha" /> to <httpHandlers> in Web.config Add <add name="CaptchaImageHandler" verb="GET" path="captcha.ashx" type="ManagedFusion.Web.Handlers.CaptchaImageHandler, ManagedFusion.Web.Captcha" /> to the <handlers> section within <system.webserver> in Web.config Add routes.IgnoreRoute("{handler}.ashx"); to Global.asax So that got it working, but there were...

posted @ Tuesday, October 28, 2008 5:53 PM | Feedback (0) | Filed Under [ ASP.NET ]

ASP.NET Strongly Typed Profile

I'm not a huge fan of the out-of-the-box functionality of ASP.NET Profiles.  I really dislike the way everything is is just serialized as a blob and there's no out-of-the-box alternative.  That aside, I'm using Profiles for an ASP.NET MVC site right now and wanted a way to strongly type the data (and remove the need for string literals).  Here's what I ended up with: 1: public class StronglyTypedProfile 2: { ...

posted @ Tuesday, October 28, 2008 1:08 PM | Feedback (0) |

Powered by: