Tip Bank

DevX - Software Development Resource

Create Your Own Exception

Here’s an example of how to create an exception. You can extend this example as needed for your own applications. The important principle is the exeption’s mechanism, not its subject:

DevX - Software Development Resource

Email All the Exceptions Occurring in an Application

The code below demonstrates a quick way to email all the exceptions that occur in an application: protected void Application_Error(Object sender, EventArgs e) { Exception ex = Server.GetLastError(); MailMessage msgMail

DevX - Software Development Resource

Passing SAX Events to a FOP Processor

This tip shows a Java application that can be used to pass SAX events to a FOP processor. It uses the javax.xml.parsers.SAXParser class: In demo document: C:Data_LocalxmldocsAirWings_fop.foOut demo document: C:Data_LocalxmldocsAirWings_pdf_sax.pdf*///FOPimport

DevX - Software Development Resource

Animate Images Along a Path in Web Pages

Use the following steps to rotate the images in your web page: Open Google Image Search. Type, for example, the word “rose” in the search field. The relusts page should

DevX - Software Development Resource

Quickly Navigate VS 2005 IDE’s HTML Editor

You can spend a lot of time perusing your ASP.NET pages in HTML view?oftentimes, the amount of HTML makes it difficult to locate little details. But the Visual Studio 2005

DevX - Software Development Resource

Obtain Information About Table Columns in Microsoft SQL Server

To obtain information about table columns in Microsoft SQL Server, use the INFORMATION_SCHEMA.COLUMNS view: SELECT COLUMN_NAME,columnproperty(OBJECT_ID(TABLE_NAME), COLUMN_NAME, ‘IsIdentity’) as IsIdentity,ORDINAL_POSITION, IS_NULLABLE, DATA_TYPE, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, COLLATION_NAME, CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME