devxlogo

Tip Bank

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

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

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

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

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

Obtain an Application’s Current Execution Path

An easy way to identify the current execution path is by using the AppDomain.CurrentDomain.BaseDirectory property, which identifies the current assembly’s execution path. This property works well for both Windows and