Author: Aksel Lian

ASP.NET MVC ActionResult for Rendering JSON using JSON.NET

ASP.NET MVC ActionResult for Rendering JSON using JSON.NET

ASP.NET MVC ActionResult for Rendering JSON using JSON.NET Author: Fredrik Kalseth An entry about asp.net mvc | ajax 1. May 2008 18:03 With the latest drop of the ASP.NET MVC framework, as I’ve mentioned earlier, controller actions now return an ActionResult object. Out of the box, you have the choice between the RenderViewResult, ActionRedirectResult, HttpRedirectResult […]

ninject and singletons how to-ensure one instance per variation of activation parameters

Author: Fredrik Kalseth     Say for instance that you have a class like this: public class Test {     private static int InstanceCount = 0;       public Test(string param)     {         InstanceId = ++InstanceCount;     }       public int InstanceId; }   Now, assume we execute the following code: var test1 […]

Defining-Routes-using-Regular-Expressions-in-ASPNET-MVC.aspx

Defining Routes using Regular Expressions in ASP.NET MVC Author: Fredrik Kalseth Tuesday, 11th of March 2008 asp.net, mvc, regular expressions Having played about with the recently released beta 2 of the ASP.NET MVC framework, I was kind of disappointed by the still fairly restrictive routing abilities of the framework. Currently, setting up a route for […]

Smarter Asynchronous Data Loading

Smarter Asynchronous Data Loading Author: Fredrik Kalseth An entry about windows forms 23. September 2007 13:23 Imagine you have a Windows Forms application that has a dialog for sending email messages. The ‘Send Message’ dialog has a button that opens a ‘Find Recipient’ dialog, which lets the user select a recipient from a rather large […]