DocTypes You Can Use in Your HTML and XHTML Pages

Posted by: Imar Spaanjaars at Sunday, May 09, 2004 12:37:00 PM in: (X)HTML
The following doctypes are available for HTML 4.01, XHTML 1 and XHTML 1.1.
Read on ...

How Do I Retrieve the Location of the Temp Folder for the Current User?

Posted by: Imar Spaanjaars at Sunday, April 11, 2004 1:24:33 PM in: VB.NET
When you're working with files, it is sometimes necessary to write to temporary files. Of course you could drop those files in the application's folder, but it's good practice to save those files in the user's Temp folder instead. This snippet will return the full path to the user's temp folder, e.g. C:\Documents and Settings\Imar\Local Settings\Temp\, so you know where to save your temporary files.
For this code to work, you'll need to import the System.IO namespace.
Read on ...

How Do I Retrieve the Location of the Temp Folder for the Current User?

Posted by: Imar Spaanjaars at Sunday, April 11, 2004 1:21:19 PM in: C#
When you're working with files, it is sometimes necessary to write to temporary files. Of course you could drop those files in the application's folder, but it's good practice to save those files in the user's Temp folder instead. This snippet will return the full path to the user's temp folder, e.g. D:\Documents and Settings\Imar\Local Settings\Temp\, so you know where to save your temporary files.
For this code to work, you'll need to import the System.IO namespace.
Read on ...

Find Out Whether a Specific Column Exists in a Database Table

Posted by: Imar Spaanjaars at Monday, March 15, 2004 3:33:05 PM in: Classic ASP
This snippet will allow you to check whether a certain column exists in a database table or not. Useful when you're coding against a database which schema you don't fully know. Just change the name of the column you're looking for (nameToCheck), the Connection String and the SQL SELECT statement, the bold items in this snippet.
Read on ...

Lorem ipsum dolor sit amet - Placeholder Text

Posted by: Imar Spaanjaars at Friday, February 20, 2004 10:05:37 PM in: General
Placeholder text, use to fill in blank area's in a Web site, instead of the "content goes here" thingies.

For more information, some history and a Lorum Ipsum generator, check the Lorum Ipsum Web site.
Read on ...

Display Information About a Microsoft Access Database

Posted by: Imar Spaanjaars at Thursday, February 19, 2004 3:06:04 PM in: Classic ASP

The following block of code will display the properties of ALL tables in a Microsoft Access database. For the code to run successfully, the variable MyConnectionString needs to contain a valid connection string pointing to the Access database.
With this code, all tables, including system tables are displayed. If you want to limit the list, use myTable.Type to determine the type of the table and skip the system tables. User tables will return "TABLE", while system tables will return "ACCESS TABLE".

If you want to display information about just a single table, remove the For Each loop and uncomment the line that starts with Set myTable. Don't forget the pass the name of the right table to the Tables collection.

Read on ...

Execute a Stored Procedure Without an Explicit ADO Command Object

Posted by: Imar Spaanjaars at Thursday, February 19, 2004 11:42:30 AM in: Classic ASP
The following code shows you how to execute a Stored Procedure (called MyStoredProcedure) in ASP without creating an explicit ADO Command object. The Stored Procedure expects two parameters: @FirstParam (of datatype int) and @SecondParam (of datatype varchar). Modify the parameter list to suit your requirements
Read on ...

Singleton Class

Posted by: Imar Spaanjaars at Friday, January 16, 2004 5:08:08 PM in: C#
This article is considered obsolete. Take a look here instead. This snippet shows you how to implement a Singleton class in C#.
Read on ...

Measuring the Size of an Image with VB.NET

Posted by: Imar Spaanjaars at Tuesday, December 30, 2003 7:27:25 PM in: VB.NET
It can be useful to be able to retrieve the Height and Width of an image file you have on disk. The following snippet shows you how to do that:
Read on ...

Measuring the Size of an Image with C#

Posted by: Imar Spaanjaars at Tuesday, December 30, 2003 7:22:58 PM in: C#
It can be useful to be able to retrieve the Height and Width of an image file you have on disk. The following snippet shows you how to do that:
Read on ... 1234