AspNetMvc

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.stefanprodan.eu/2012/01/user-friendly-captcha-for-asp-net-mvc/ – 30/01/2012 Posted in: Programming In this post I will show you how to add CAPTCHA functionality to a html form in an Asp.Net MVC 4 project. My goal is to make the CAPTCHA problem easy enough for all to solve, like a simple sum operation, and easier to read then the standard CAPTCHA text. An easy to read image is more vulnerable to smart bots that have an ORC system but I prefer to scare less clients then to provide the strongest anti-bot protection.

User friendly CAPTCHA for Asp.Net MVC

http://www.codeproject.com/Articles/344078/ASP-NET-WebAPI-Getting-Started-with-MVC4-and-WebAP

ASP.NET WebAPI: Getting Started with MVC4 and WebAPI

Introduction I’ve spent last year working on ASP.NET MVC3 and felling good this year on MVC4. I got some new exciting features after updating to MVC4, Web API is one of those exciting features. I have read a lot on this feature and got a lot good articles on web. But I didn't get any article that covers all concepts in one place.
http://www.davidhayden.me/blog/conditional-attributes-in-razor-view-engine-and-asp.net-mvc-4 A SP.NET MVC 4 and the Razor View Engine v2 were released in beta awhile back with some pretty nice features like ASP.NET MVC 4 Bundling and Minification , EF Data Migrations , and ASP.NET Web API . You can find all of this in my ASP.NET MVC 4 Tutorials . The new Razor View Engine v2 has a couple of nice features, too, like the new " Tilde Slash " feature that avoids the use of Url.Content and Href to convert relative paths to absolute paths.

Conditional Attributes in Razor View Engine and ASP.NET MVC 4

One of the scenarios that I always demonstrate during an ASP.NET MVC class is how to create a mass assignment vulnerability and then execute an over-posting attack. It is a mass assignment vulnerability that led to a severe problem on github last week. Let's say you have the following model. public class User { public string FirstName { get ; set ; } public bool IsAdmin { get ; set ; } } When you want to let a regular user change their first name, you give them the following form.

6 Ways To Avoid Mass Assignment in ASP.NET MVC

http://odetocode.com/Blogs/scott/archive/2012/03/11/complete-guide-to-mass-assignment-in-asp-net-mvc.aspx
I’ve recently been introduced to the Managed Extensibility Framework by a colleague at work, and have enjoyed picking it up so much it made me wonder how I could apply the simplicity of composition into my favourite web framework, ASP.NET MVC. There are a few obstacles to overcome initially, namely how instances are composed by default, and how the MVC system handles custom controllers. The idea behind this project, is to enable a Controller to be developed and deployed in it’s own assembly, with the ability to drop it into a project as an extension. Thus, as is the nature of MEF, this was down to exports and imports. MVC allows us to customise how controllers are created by implementing our own controller factory, so we can use this as well.

Using MEF with MVC Controllers - var Matt = new Hero();

http://www.fidelitydesign.net/?p=88
Building on the work I have done previous (see Using MEF with MVC Controllers ), I’ve created a revised architecture of MEF + MVC using .NET 4.0. I’m (mostly) happy with the outcome. One of the things I wanted to get right, was allowing true modularity using MEF. As you already know, its now relatively painless to do modular code with ASP.NET (thanks to standard .NET activation, or using something like MEF for automatic composition), but one of the challenges is not how the code plugs in, but the views themselves. This was always difficult with WebForms because of the way the .aspx pages are compiled (seperately from the code). The other pain is the way you may have had to organise your files in the file system, they were also disconnected from the libraries because these had to exist in the \bin directory of your application. http://www.fidelitydesign.net/?p=104

Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part One - var Matt = new Hero();

http://www.fidelitydesign.net/?p=130 In my previous post I presented an MVC Framework that uses the Managed Extensibility Framework (MEF) to allow for powerful extensibility of ASP.NET MVC, not just for controllers, but also for views. You can find my original article here . There are a couple of small issues I want to iron out before it becomes a project-quality framework. These issues are: Strongly-typed Models from imported libraries Managing referenced libraries in built modules

Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Two - var Matt = new Hero();

Modular ASP.NET MVC using the Managed Extensibility Framework (MEF), Part Three - var Matt = new Hero();

Firstly, sorry it’s been so long since my last MVC+MEF post, been a bit busy with life in general. Still haven’t managed to get my project onto CodePlex, but we shall see soon! Ok, so where did we get to last time? We’ve managed to build a prototype MVC+MEF framework that supports modular areas and strongly-typed views. http://www.fidelitydesign.net/?p=159