Latest Microsoft Blogs

Bertrand Le Roy

Alternating styles in ListView without AlternatingItemTemplate

ListView (the server-side control), like all repeating data controls in ASP.NET, has an AlternatingItemTemplate , but it would be a shame to have to copy all the markup in the ItemTemplate into AlternatingItemTemplate , just to alternate styles on the...

Stephen Walther

ASP.NET MVC Tip #24 – Retrieve Views from Different Folders

In this tip, I demonstrate how you can retrieve a view from any folder in an ASP.NET MVC application. I show you how to use both specific paths and relative paths. Until today, I thought that a controller action could return a view from only one of two...

Ton Christian - ASP.NET Debugging

ASP.NET Tips: DumpAllExceptions output changes

The first time you run !DumpAllExceptions you will see it print out one full exception for each type of exception that is in the dump. This will include the message and the callstack of the exception. For example: Any time after that, if you run the...

Stephen Walther

ASP.NET MVC Tip #23 – Use POCO LINQ to SQL Entities

In this tip, I demonstrate how you can create LINQ to SQL entities that do not contain any special attributes. I show you how you can use an external XML file to map LINQ to SQL entities to database objects. I’ve talked to several people recently...

Ton Christian - ASP.NET Debugging

ANSWER: POP QUIZ: What are Free Threads in the Threadpool

So I was hoping to get some more comments to this before posting the answer but I guess that isn’t going to happen. The minFreeThreads and minLocalRequestFreeThreads are very important settings when it comes to how much load your webserver can...

you've been HAACKED

Unit Test Boundaries

One principle to follow when writing a unit test is that a unit test should ideally not cross boundaries . Michael Feathers takes a harder stance in saying… A test is not a unit test if: It talks to the database It communicates across the network It...

Ton Christian - ASP.NET Debugging

Windows Home Server update

Monday morning the Windows Home Server Power Pack 1 update package and release notes went live on the Microsoft Download Center.  This is great news to anyone that has been using this product. Power Pack 1 fixes the data corruption bug as well...

Stephen Walther

ASP.NET MVC Tip #22 -- Return a View without Creating a Controlle...

In this tip, I demonstrate how you can eliminate controller methods that simply return views. I show you how to use the HandleUnknownAction method to handle every request against a controller automatically. I saw Phil Haack use the following tip in a...(...

Ton Christian - ASP.NET Debugging

BLOG CHAT RECAP: SQL Injection

We had a good chat on Friday and I think we got most, if not all, of the questions answered in regards to SQL Injection. For those of you that missed the chat, check out the transcript here . If there is anything that we missed, please feel free to...

Scott Hanselman

The Weekly Source Code 30 - Spark and NHaml - Crazy ASP.NET MVC V...

I've been getting more and more interested in how folks extend their applications using plugins and things. In my new ongoing quest to read source code to be a better developer , Dear Reader, I present to you thirtieth in a infinite number of posts...

»  View the complete list of posts at weblogs.asp.net/aspnet-team/