Code

The following articles come with code downloads. To get the code downloads, click on the article titles, then click on the Code Download button.



Define Your Own Item Templates

Take advantage of C#'s Item Templates to automate tasks that you find yourself having to perform on a regular basis.

Call Oracle from ADO.NET

Learn to access enterprise data stored in Oracle database servers by calling PL/SQL stored procedures from ADO.NET client applications and discover implementation strategies for dealing with common business scenarios.

Test-Drive SQL Server Data Services

Microsoft readies its new "cloud database" by hosting beta versions of REST and SOAP protocols for performing CRUD operations on clustered, customized SQL Server 2008 instances. These instances are organized as massively scalable, super-reliable, highly available Web services.

Use Recursion to Clear out Textboxes

Clear out textboxes using recursion and LINQ; use VB literals to transform an XML document; and eliminate an annoying artifact of VB internals.

Extend Your Apps with External Add-ins

Take advantage of the System.AddIn namespace to handle logic external to your application; don't get caught by Excel's one-based indexes; and make LINQ extension methods work with ArrayLists.

Treat Code as Data

Take advantage of new features in C# 3.0 that let you treat code as data -- and save time over more traditional, imperative approaches to programming.

Reduce Code and Server Roundtrips

Utilize table-valued parameters to write less code and to achieve higher application performance.

Connect Apps with WCF

Learn when and how to utilize Windows Communication Foundation to develop and maintain your communications layer when creating a loosely coupled, scalable, interoperable services-oriented application.

Simplify Your Code with Reflection

Take advantage of generics and reflection to determine whether a user has changed any data on a given form.

Initialize Objects Properly

Developers are accustomed to thinking of an object as either existing or not, but the truth is the initialization process is complex enough that this isn't always so. Learn how to initialize objects properly and avoid small missteps that can lead to big problems when creating and initializing objects.

Create Rich Web Apps with AJAX

AJAX has caught on tremendously as a method for building dynamic and interactive Web sites. Learn what AJAX is, what its benefits are, and how you can implement the technology in your own applications.

Customize the VB IDE

The VB IDE is a terrifically productive development environment out of the box. But it can be a lot better still. Learn how to customize the IDE for better productivity and performance.

Simplify Application Instancing

Take advantage of the new PipeStream classes and XML features in .NET 3.5 and VB9 to resolve the age-old problem of creating a single-instance application.

Banish UAC Issues

User Account Control (UAC) issues usually result from improperly allowing administrator-level access in your applications. Learn how UAC works and make such problems a thing of the past.

Understanding Silverlight's CreateObject and CreateObjectEx Methods

Dan walks you through the properties and sample code for each, plus why you might want to use one over the other.

Subscribe on YouTube