01
aug
2016

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

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

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 and EmptyResult types to do…

Les Mer
01
aug
2016

Invoking ASP.NET MVC Actions from JavaScript using jQuery

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Invoking ASP.NET MVC Actions from JavaScript using jQuery Author: Fredrik Kalseth An entry about asp.net mvc | ajax | javascript 31. May 2008 11:27 One of the things that the MVC model is really great at, is integrating with Ajax. I blogged about a RenderJsonResult class a few weeks ago that one could use to create controller actions which render…

Les Mer
01
aug
2016

Partial Rendering with ASP.NET MVC and jQuery

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Partial Rendering with ASP.NET MVC and jQuery Author: Fredrik Kalseth An entry about asp.net mvc | ajax | javascript 1. June 2008 13:57 Yesterday, I wrote a post detailing how easy we can invoke an ASP.NET MVC controller action from JavaScript using jQuery. Lets up the ante a bit, and see if we can't use the same approach to get…

Les Mer
01
aug
2016

Keeping a Transaction from Escalating

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Keeping a Transaction from Escalating Author: Fredrik Kalseth An entry about ado.net 20. December 2007 20:32 With the introduction of the System.Transactions namespace in .Net 2.0, working with transactions became dead easy. All you need to do is wrap the section of code you want to be transacted in a TransactionScope, and the framework will take care of the rest.…

Les Mer
01
aug
2016

Design by Contract with .NET 4.0

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Design by Contract with .NET 4.0 Author: Fredrik Kalseth An entry about visual studio | .net 4.0 6. November 2008 16:33 Justin van Patten has put together a great list of all the new features that will ship with .NET 4.0 – both new features in the BCL, as well as the new features in the C# language itself. One…

Les Mer
01
aug
2016

CreatingaSingleInstanceApplicationinC.aspx

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Creating a Single Instance Application in C# An entry about c# 3.0 | windows forms 24. March 2007 11:47 Sometimes, it's desirable to ensure that there is only ever one instance of your application running at any given time. Take Windows Live Messenger for instance - if you try to launch it whilst it is already running, it will just…

Les Mer
01
aug
2016

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

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

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 = kernel.Get<Test>(With.Parameters.ConstructorArgument("param", "1")); var test2…

Les Mer
27
jul
2016

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

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

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 a request is done using…

Les Mer
27
jul
2016

Smarter Asynchronous Data Loading

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

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 address book. It takes the…

Les Mer
27
jul
2016

Constructor-Injection-for-ASPNET-MVC-Action-Filters.aspx

  • Aksel Lian
  • 0 Views
  • 0 Comment
  • No tags

Constructor Injection for ASP.NET MVC Action Filters Author: Fredrik Kalseth An entry about asp.net mvc | inversion of control 9. April 2009 11:50 ASP.NET MVC’s action filters allow you to execute some code before/after an action in a declarative manner, manipulating what goes into or comes out of the action. In essence, they are what’s called aspects in Aspect Oriented…

Les Mer
oh yea test

daeataetsdfasdf

CLOSE