Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .Net
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...
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...
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...
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...
If you are like me, then you might have multiple Console applications in your projects folder that you use for testing small chunks of code.  I think at one point recently, I was up to ConsoleApplication28 before I cleaned up the unused projects.  Read More...
I was watching a presentation today and there was a point brought up that I found really interesting. Say you have the following LINQ code: 1: int [] iArray = new int [] { 5, 4, 3, 2, 1, 0 }; 2:   3: IEnumerable< int > results = iArray.Select(i Read More...
.NET 3.5 added some new classes that really help when dealing with RSS/ATOM feeds.  These classes are located in the System.ServiceModel.Syndication namespace in the System.ServiceModel.Web.dll library.  The SyndicationFeed class in this namespace Read More...
I came across this problem today.  I am using SQL Reporting Services to send reports to a SharePoint document library on a scheduled basis by using the Copy webservice that SharePoint provides.  It was working as expected during initial testing.  Read More...
The answer: When it is a SortedList. Here is one issue that I have with the Framework.  The name SortedList<T> implies that the class inherits IList<T>, but it does not.  In fact, it implements IDictionary<TKey,TValue>. This Read More...
The Parallel Programming team has released a June 2008 CTP of the Parallel Extensions for .NET. They have made some good improvements over the last version. More about the release can be found here . The CTP can be downloaded here . Read More...
Singularity is an operating system research project that is being developed by Microsoft Research.  They have recently released the Singularity Research Development Kit on CodePlex and it looks quite interesting. Singularity is mostly written in Read More...
More Posts Next page »
 
Page view tracker