The ASP.NET Code Samples Collection is a roundup and map of ASP.NET code samples from  various sources including the MSDN library, www.ASP.net, Code Gallery, CodePlex, and Microsoft Support.

You can add to the ASP.NET code examples collection by sharing in the comments or emailing me atFeedbackAndThoughts at live.com.

Common Categories for ASP.NET Code Samples
The ASP.NET Code Samples Collection is organized using the following categories:

 

ASP.NET Code Samples Collection

Category

Items

Sample Applications

  • Layered Architecture Sample
  • Tailspin Spyworks

ASP.NET MVC

  • Nerd Dinner
  • MVC Music Store

AJAX / jQuery

All-in-One Code Framework

  • ASP.NET AJAX Extender (C#)
  • ASP.Net Ajax ScriptControl (C#)

Code Gallery

  • AJAX pager
  • Ajax Paging for DataGrid
  • ASP.NET dropdownlist using ajax & VB
  • Building an AJAX Web Part for Microsoft Office Project Server 2007
  • Code for "New Features To Slice, Store, And Accelerate Your Web Applications”
  • CRM WCF Integration - Blogged at http://www.waelhamze.com
  • Fast, Scalable ASP.NET AJAX Content Proxy that Streams content
  • Improving WCF, AJAX, and ASP.NET Security and Performance
  • Joel Rumerman's Code Samples
  • Microsoft Visual Studio AJAX Profiling Extensions Power Tool
  • NHibernateAccessExtension
  • Paulo Morgado's Code Gallery
  • RegClientControls
  • Student Information using ASP.NET MVC 2.0 and AJAX
  • Web Application Toolkit for Bing Search

Microsoft Support

  • KB961864 - _pendingCallbacks[...].async' is null on ASP.NET 2.0 AJAX site

Authentication

Code Gallery

  • Fabrikam Jets - Integrating Codename "Dallas" with AppFabric Access Control
  • Remote Desktop Services Developer Resources
  • Token Authentication for ASP.NET

Customer Support

  • KB971831 - Allow token based authentication w/o transport or message encryption

Authorization

Code Gallery

  • Claims-Based Authorization with Windows Identity Foundation
  • Code for "Authorization In WCF-Based Services"
  • Enhanced authorization module for MCMS
  • FabrikamShipping
  • MSServices, HTTP Data Provider
  • Oragon Security

CSS 2

  • ASP.NET CSS Templates
  • Code for “New Features to Slice, Store and Accelerate your Web Applications
  • Devscribe
  • Web Widgets with .Net

Data Access

All-in-One Code Framework

  • ASP.NET custom data source for rdlc (C#)

Code Gallery

  • A sample of ASP.NET ObjectDataSource with Northwind database
  • All-In-One Code Framework (AIO)
  • An Example of a Multi Tier Architecture for Linq to Sql
  • ASP.NET Dynamic Data Preview
  • Building a LINQ Provider
  • Data Access in a SharePoint Web Part
  • Inserting Data into SQL Compact Edition Databases in Visual Studio
  • LINQ Entity Data Reader
  • MSDN Code Gallery Information and Discussion
  • Working with Microsoft Access Data in Visual Studio

Exception Management

Code Gallery

  • C# tested & easiest lines of code for send email with ASP.NET page
  • Code for "Error Handling in Workflows"
  • ElementaryExtensions Library
  • ESB Guidance WCF Error Handler
  • Exception Filter Inject - Provides C# dll/exe's with execption filter support
  • Exception Handler Info Generator - http://code.msdn.microsoft.com/ExceptionHandlerInfo
  • Exception handling
  • Fix Page Layout
  • Visual Studio Template for Microsoft Dynamics CRM Plug-ins
  • Windows Server 2008 R2
  • WinForm Exception Interceptor
  • XmlCleanupSoapExtension

Microsoft Support

  • KB893005 - Exception thrown in ErrorProvider constructor
  • KB899511 - System.NullReferenceException exceptions in .NET 1.1
  • KB913393 - Error when you specify a larger than 2 GB Content-Length HTTP header
  • KB917495 - OutOfMemoryException exception when you run a .NET 2.0 application
  • KB923028 - "Unhandled Error" when you run a .NET Framework 2.0 Remoting
  • KB930771 - Exception due to managed heap corruption
  • KB934839 - Exception when you browse .NET Framework 2.0 ASP.NET Web application
  • KB941132 - NullReferenceException exception when you use ShowDialog method
  • KB960096 - Error message when you try to add files to Source Code Control (SCC)
  • KB971169 - Exception When App_GlobalResource Has Culture Name Like zh-hant 
  • KB975954 - AccessViolationException or a dead-lock occurs in .NET 2.0 based app
  • KB981119 - ScriptModule throws FIPS exception on Win 7

JavaScript / JSON

Code Gallery

  • Code for "New Features To Slice, Store, And Accelerate Your Web Applications”
  • CRM Silverlight Integration - Blogged at http://www.waelhamze.com
  • CRM WCF Integration - Blogged at http://www.waelhamze.com
  • JavaScript in SharePoint 2010
  • JavaScript snippet
  • JSON ASP.NET Sample
  • JSONP and URL-controlled format support for ADO.NET Data Services
  • KB958502 - JScript Editor support for “-vsdoc.js” IntelliSense doc. files
  • Live Framework
  • Microsoft Visual Studio AJAX Profiling Extensions Power Tool
  • SharePoint Javascript Utilities
  • Web Widgets with .Net

Logging and Instrumentation

patterns & practices

  • Implementing Intercepting Filter in ASP.NET Using HTTP Module

MVC

Code Gallery

  • Asynchronous support for ASP.NET MVC
  • How to: Implement Remote Validation from a Client in MVC
  • How to: Validate Model Data Using DataAnnotations Attributes
  • Mytrip.Mvc
  • System.Web.Mvc.Controller class
  • Using an Asynchronous Controller in ASP.NET MVC
  • Walkthrough: Adding ASP.NET AJAX Scripting to an MVC Project
  • Walkthrough: Creating a Basic MVC Project with Unit Tests in Visual Studio
  • Walkthrough: Organizing an ASP.NET MVC Application using Areas
  • Walkthrough: Using MVC View Templates with Data Scaffolding
  • Walkthrough: Using Templated Helpers to Display Data

Navigation

Codeplex

  • Navigation for ASP.NET Web Forms

Request Processing

ASP.NET Developer Center (www.ASP.NET)

  • HTTP Handlers and Factories

State / Session Management

Code Gallery

  • ASP.NET Session Monitor 1.0
  • Cutting Edge: The ASP.NET View State

Validation

Code Gallery

  • Validating Form Input Controls 
  • How to: Implement Remote Validation from a Client in MVC
  • How to: Validate Model Data Using DataAnnotations Attributes

Visual Studio and ASP.NET Development

Code Gallery

  • Bootstrapper Manifest Generator
  • C# Micro Chess (Huo Chess)
  • Employee Info Starter Kit
  • Huo Chess - XNA Edition
  • Microsoft Solver Foundation - Express Edition
  • PowerCommands for Visual Studio 2008
  • Samples Environment for Microsoft Chart Controls
  • StickyNotes
  • Visual C# 2008 Samples
  • Visualization and Modeling SDK (DSL Tools) Lab

Microsoft Support

  • KB912019 - Error when you rebuild and view a Windows Form in Visual Studio 2005
  • KB915782 - InvalidCastException error in an ASP.NET-connected Web application
  • KB917952 - Error message when you try to install a ClickOnce application
  • KB918559 - Performance issues when debugging a Visual Studio 2005 C++ Project
  • KB926776 - A hotfix rollup package for 913297, 913393, 918995, and 924895
  • KB928208 - Compile and runtime issues for Visual Basic Macros
  • KB930198 - C2244 error after you install Visual Studio SP1
  • KB943969 - Visual Studio 2005 Slow Performance when you use IntelliSense feature
  • KB946040 - Error C2471: cannot update program database, Visual C++ 2008 project 
  • KB946581 - Cumulative update for Visual Web Developer Express 2008
  • KB958502 - JScript Editor support for “-vsdoc.js” IntelliSense doc. files