Browse by Tags

All Tags » Tips » ASP.NET MVC (RSS)
Recently I developed a strategy which I think works well for authorizing access to user groups (Roles) without using the string names of those groups. The problem I am trying to avoid is doing something like [Authorize(Roles=”AdminRole”)] on a controller...
Posted by srkirkland | 10 comment(s)
Filed under: , , , ,
In an earlier post I talked about writing a Transaction attribute for MVC using NHibernate (though it isn’t really NHibernate specific).  The basic idea is that when an action marked with [Transaction] is executing (OnActionExecuting) you begin a...
        Telerik recently released their Extensions for ASP.NET MVC which include several great controls, the most immediately useful of which is their Grid control.  In the simple (and probably most common) cases the...
ASP.NET MVC comes with a UrlHelper class in the System.Web.Mvc.Controller.Url namespace, which you can access through the Url property of any controller.  This provides some handy methods to get the url of an action or route, among other things. ...
Posted by srkirkland | 3 comment(s)
Filed under: , , , ,
More Posts