Archive | August, 2010

Simple Dependency Injection

26 Aug

Simplest (and therefore best, because simple is good, isn’t it?) explanation of DI I’ve read so far:

Dependency injection means giving an object its instance variables. Really. That’s it.

See
http://jamesshore.com/Blog/Dependency-Injection-Demystified.html

ActionLink with Image in ASP.NET MVC 2

24 Aug

As far as I know, this is one of the simplest ways to insert an ActionLink into your ASP.NET MVC 2 View with an image instead of text:

<a href="<%: Url.Action("Detail", new  { param1 = "blah" } )  %>">
  <img src="../../Content/images/magnifier.png" />
</a>

Any simpler solutions?

Follow

Get every new post delivered to your Inbox.