C# & ASP.NET - September 2014

Honeypot implementation in MVC

Honeypot bot detection implementation in MVC
 
0
You can find a bunch of articles on internet about HONEYPOT implementation on web pages, but in short it is a replacement for CAPTCHA anti-bot security. In CAPTCHA scenario, user needs to enter hardly recognizable characters in order to prove that he is not a bot trying to submit data. Sometime that is really annoying but it is a way to filter automated posts created from bots. ... read more

Access auto property backing field with reflection

Access property fields of auto property in C#
0
Using reflection you can easily access any property, filed, methods, pretty much anything of any type in .NET. Reflection is never the most elegant way to do something, but sometime you just have to do it. In older versions of C#, to declare a simple property in a class you would have to declare a private field which will be exposed by the property outside the class ... read more