• Aksel Lian
  • Bedre plassering . Første side Google . Hvordan få bedre søkplassering . Søkoptimalisering .

  Nettsiden din ligger ute i ørkenet et sted og er en oase med masse vann. En tørst bortkommen mann vandrer rundt i ørkenet under stekende sol og er desperat for noe å drikke. Hadde han bare visst hvilken retning din oase lå... Hvis det var skilter spredt ut rundt omkring i ørkenet med reklame for din oase, med distanse…

Les Mer
  • Aksel Lian
  • No tags

Ajax Extender for Identifying External Links Author: Fredrik Kalseth An entry about asp.net | ajax 4. April 2007 20:46 .NET slave Mads Kristensen wrote a nice post on how to identify external links using JavaScript a few days ago, over on his blog. I had been meaning to implement something similar here, and his post gave me the much needed nudge…

Les Mer
  • Aksel Lian
  • No tags

A Context Menu Control Extender Author: Fredrik Kalseth An entry about asp.net | ajax | javascript 4. August 2007 13:19 One of the things I've been missing in the Ajax Control Toolkit, is a context menu extender - so I figured I'd write one myself :) Turns out it was much easier than I anticipated, and after about an hour…

Les Mer
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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
  • Aksel Lian
  • 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