Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

Chris Tavarez has provided a handy adapter ( UnityServiceLocator ) for using ServiceLocator to resolve types from a Unity container. You can then use ServiceLocator.SetLocatorProvider() to register the UnityServiceLocator as the default provider for ServiceLocator. Read More...
A custom Role Provider is a very useful tool for adding custom authorization to your ASP.NET and/or ASP.NET MVC applications.  A common use for a custom Role Provider is when you have role information stored in a data store that differs from the Read More...
When using Unity as your IoC container , one way to configure the container is to use an configuration section in your app.config or web.config file.  A simplified example of this configuration is shown below: 1: <? xml version ="1.0" Read More...
One of my favorite features of ASP.NET MVC is the support for JSON . In MVC, an Action Method in a Controller can return a JsonResult. This really comes in handy when integrating with jQuery to provide AJAX-like functionality in an application. In this Read More...
"Make everything as simple as possible, but not simpler" Albert Einstein With all of the software design patterns available to developers, I think that we sometimes lose focus of the pragmatic development approach: Write code that works. Don’t get me Read More...
There is a meme going around Facebook where everyone is writing 25 random things about themselves.  I thought I would share this on my blog as well.  So without further ado, here are some random facts about me:   1. I get really annoyed Read More...
A few co-workers and I lately have been having this conversation.  The following hypothetical argument illustrates the con of the argument: How can we be engineers if we can’t agree on what we’re building? Do engineers have conversations like this: Read More...
I have been working on a project that uses the Entity Framework as the persistence store.  I am implementing a global search capability that returns results from the various entities that have a string property that start with a given query string.  Read More...
Last night I wrote a post about the Visual Studio Unit Testing Extensions that I put out on CodePlex . I forgot to mention one of my favorite features that the library provides. I showed how you can use the library to write readable unit tests like the Read More...
This is a personal hobby project that I have been working on recently. The code has been released on CodePlex and can be found here . The Visual Studio Testing Extensions is a library that exposes a set of extension methods to provide a way to write more Read More...
Function caching, or more specifically memoization , is a code optimization technique that can be used to speed up code that calls complex functions with the same inputs.  Let's take a look at the classic fibonacci function: 1: private int Fib( int Read More...
This is something that I put together in a few minutes to provide a way to refresh a partial view on a specified time interval. Let's create a MVC User Control that displays the current date and time called "TimeControl.ascx": 1: <%@ Control Read More...
So I was thinking tonight, what if I want my MVC application to serve images that are stored in a SQL database as binary data? Or files that are stored in the database?   One of the things that I really like about MVC is that ability to add Read More...
Ok, I have to admit it: jQuery is awesome. If you haven't started looking at it, I highly recommend that you do. It works wonders in the ASP.NET MVC world. One of the best things about jQuery is the enormous number of plug-ins that are available for adding Read More...
The early previews of the MVC Toolkit contained a few helpers that are not available in the current MVC Beta and MVC Beta Futures .  On of the ones that was nixed was the CheckBoxList helper.  I was in need of this type of functionality lately Read More...
More Posts Next page »
 
Page view tracker