Posts tagged as "asp-net-mvc"

Implementing XML-RPC services with ASP.NET MVC

I recently needed to expose some functionality using XML-RPC services and looking around the web, the most popular .Net library is www.xml-rpc.net which looks pretty good. However they implement their services using a custom HTTP Handler, and I had really hoped to find one based on ASP.NET MVC.  Why would ...

Avoiding magic strings in ASP.NET MVC Authorize filters

Using the standard [Authorize] filter in ASP.NET MVC results in "magic strings"; comma-separated role names to define which roles are authorised to access that action. Take an example of a typical Forms Authentication setup, where you want to restrict an action to users in either the "Administrator" or "Assistant" role: ...