The Latest

DevX - Software Development Resource

Send Email Over SMTP Aschronously

To send email over SMTP asynchronously, create a SmtpClient, call its SendAsync method, and add a SendCompleted event handler to your code: //Call the SmtpClient SendAsync method SmtpClient client =

DevX - Software Development Resource

Spring and Hessian for Fast, Easy Java Remoting

he world of enterprise Java has an overwhelming array of choices for remoting: RMI, XML/SOAP, REST/JSON, etc. Each comes with its own industry-acknowledged strengths and weaknesses, such as complex setup

DevX - Software Development Resource

Using RDFa with DITA and DocBook

he RDF data model gives you a way to add attribute name/value pairs to any resource that you can reference with a URI. This makes it easy to create metadata

DevX - Software Development Resource

WPF Wonders: Transformations (and Robots!)

indows Presentation Framework (WPF) gets a lot of mileage out of being layered on top of DirectX, including fast rendering, multimedia support, audio, video, and more. One of the features

DevX - Software Development Resource

Decoding General Compiler Error Messages

Error: Undeclared Identifier Example error message: doy.cpp: In function ‘int main()’: doy.cpp:25: ‘DayOfYear’ undeclared (first use this function) doy.cpp:25: (Each undeclared identifier is reported only once for each function it

DevX - Software Development Resource

Get the Name of the Executing ASP.NET Page

You can use the following server-side code to get the name of the currently executing ASP.NET page (e.g. default.aspx, hello.aspx). string sPagePath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo oFileInfo = new System.IO.FileInfo(sPagePath); string

DevX - Software Development Resource

Global Exception Handling in WPF

In XAML, you can hook an application-level event that will fire whenever an unhandled error occurs anywhere in your application by overriding the OnStartup event in the App.xaml.cs file. Here’s

DevX - Software Development Resource

Accommodating Null Values in SQL Server

espite having a good understanding of the term null, most developers still fail to adequately accommodate null values in their databases. Accommodating null values appropriately is an important part of

DevX - Software Development Resource

Adding an Installer Class to a Windows Service

Visual Studio makes it simple to add an installer class to your Windows service. Here are the steps: Open the “Solution Explorer” (press Ctrl-Alt-L, or go to the “View” menu

DevX - Software Development Resource

Determining Merge Errors in a Typed DataSet

Merging typed DataSets can cause a “Merge Constraint” error, which explains the problem, but doesn’t help much in solving it. Here’s how to find the exact cause of the error:

DevX - Software Development Resource

Keep Your SQL Server Indexes Fragmentation Free

ou risk a great deal by neglecting your database. Without routine maintenance, a growing database becomes lethargic. As performance degrades, the potential for errors or a system crash increases. At

DevX - Software Development Resource

Eliminate Spaghetti Code Using PHP Rules

HP Rules is a rule engine that lets you separate conditional logical statement from your source code and from the database, placing the conditional logic in reusable files, where you

DevX - Software Development Resource

Discover Long-Running Queries

Let SQL Server tell you which queries take the longest to run. The following query returns the five longest-running queries. You can change the TOP 5 to whatever number best

DevX - Software Development Resource

An OCX-less Progress Bar

If you need a progress bar in your VB6 application, but don’t want to add the reference to Microsoft Windows Common Controls, here’s a simple way to create a progress