devxlogo

The Latest

Creating an HTML Directory in ASP

Although most Web servers give you the option of allowing users to view the list of files in a Web site directory, you may not want to show some types

Nested Namespaces Reduce Name Clashes

Nested namespaces are useful in large-scale projects, whereby every development team gets a dedicated namespace within the project’s namespace. Nested namespaces reduce the likelihood of name clashes among different teams

Quick and Dirty Tickmarks

The JSlider component can be customized so that its labels, track, and tickmarks (or any combination of the three) are hidden. Unfortunately, there’s no way to turn off the slider

Hide Unnecessary Navigation Buttons Using DHTML

Hide your navigation buttons using DHTML when you don’t need them. Imagine a page with a databound table on it showing ten rows of data. When you’re at the beginning

Using the Visual Basic Snapshot Data Object

The Visual Basic Snapshot data object is closely related to the Dynaset data object, but differs in several key respects. Snapshots are stored entirely in RAM on the user’s local

Using SQL Aggregate Functions Is Efficient

All SQL-compliant systems, including Microsoft JET SQL, have a set of functions to return computed results of numeric data stored in a column. All the aggregate functions create effects that

Displaying a List of Checkboxes

All of the aggregate components in Swing–that is, components made up other components, such as JTable, JTree, or JComboBox–can be highly customized. For example, a JTable component normally displays a

Listing All Environment Variables

Environment variables are useful for gathering data about a client’s system settings, but different servers have different environment variables available to them. To find out what environment variables are available

Deploying Your Web Application to Another Server

Question: I developed a Web site with a database on my machine using Internet Information Server (IIS), Active Server Pages (ASP), and SQL Server. I want to install the site,

Refreshing Using the META Tag

Question: What HTML tag do I use to have the screen refresh every two minutes? Answer: The following META tag will work. The value of the CONTENT parameter will determine

Building a Web Site With Database Design

Question: I am designing a Web site for a conference. Over 2000 attendees are going to use the Web site for registering online, as well as for other interactive tasks,

Books Covering Visual Basic 6 and Web Classes

Question: I am building Web pages using Visual Basic 6, Web Classes, HTML, DHTML, and JavaScript. Do you know of any good books that actually explain this type of programming?

Incoming Calls While Surfing

Question: We have one phone line coming into the house. How can I get the phone to ring and the Internet connection to be broken if I’m on the net

Adding Two Submit Buttons to an HTML Form

Question: Can I use two submit buttons in the same form, but refer to two different scripts? Answer: Yes, it is possible to add two submit buttons to an HTML

Interacting With the Operating System Directly

In general, API functions and classes enable you to interact with the operating system. Sometimes, however, it is much simpler to execute a system command directly. For this purpose, you

Stop Data Input Errors Before They Start

When developing a database program, always keep the data-input user in mind. The most elegant program in the world is useless if the data is riddled with errors. If a

A Basic Class Finder Utility

Here’s a useful utility for finding the full pathname for a class (or any other file) from a Java program. This utility uses the method getClassNameFromPackage() described in the Tip

Finding Where Your ISP Stores Your ASP Files

Although your Internet Service Provider (ISP) tells you the virtual directory that holds your Active Server Pages site, you may need to know the actual path where your files reside.

Why void& Type is Illegal

A reference is always bound to an object. In fact, you can think of a reference variable as an alias of its bound object. However, void& is not bound to

Obtaining a File Path From a Class Name

You can use a basic class finder utility to find the actual class file from a class. You can use the complete utility to locate a class file (or any

Customize Your FTP Welcome Message

It’s fairly simple to customize the welcome message on your IIS/Windows NT FTP server. Welcome messages can contain directory information, usage guidelines, unauthorized access warnings, server news, and other useful

Use Includes in Your Active Server Pages

Use the #INCLUDE statement in your Active Server Pages (ASP) to utilize common code throughout your Web site. An Include file can contain client-side script, HTML or ASP. By coding

Refreshing the Data Grid for Different Parameters

Question: I am using Visual Basic 6 and have a data grid referencing the Data environment command with a parameter. The grid won’t refresh to allow for different parameters. The

Background Image Tiling With CSS

Cascading Style Sheets allow developers to exercise greater control over background images on the Web. You can make an image tile vertically across the page, horizontally across the page, or

Designating Disabled Icons

To show when an icon button is disabled, you need to have a less prominent version of the icon’s image. The following class reduces the alpha component of each color

Put a JTabbedPane on a Tab of a JTabbedPane

Question: I want to put a JTabbedPane on a tab of another JTabbedPane for using it as a chapter with different sections below it. How can I do this? Answer:

Resource Bundles and Graphics

Question: Is it possible to load icons and other graphics into an application using a resource bundle? Answer: Resource bundles are intended to provide locale-specific resources so an application can