Tuesday, April 24, 2012

ASP.NET MVC Authentication - Global Authentication and Allow Anonymous


Reminder: Don't use web.config to restrict access, use [Authorize]
    public ActionResult Login()

 public class HomeController : AuthorizedController

How to set default value for Auto-Implemented Properties in C#

No direct way to do this.
Either set default value in Class constructor or design your property without auto-implemented

Cleaning up ASP.NET MVC Controllers