The Latest

DevX - Software Development Resource

Dynamic Copyright Date

This little bit of code keeps webmasters from having to update copyright dates at the beginning of every year. Put it in the body of your HTML. Don’t forget to

DevX - Software Development Resource

Stuffing a Javascript Value into a VBScript Variable

Detect the client’s screen resolution using Javascript and then stuff it into an ASP variable! Related Posts eeGeo Launches Global 3D Mapping Platform to Visualise Location-Based Services and InteriorsHow AI

DevX - Software Development Resource

Words from the Publisher: Who Do You Trust?

y hometown in rural Alabama was a place where the level of trust was extremely high. I cannot remember a time during my childhood when the door to our house

DevX - Software Development Resource

Looking Forward and Back

ell, the end of 2002 is at hand and what a year it has been. From an economic standpoint this year has been a tough one. From a technology standpoint

DevX - Software Development Resource

Microsoft Exception Management Application Blocks

xceptions need to be handled in all applications. Having a consistent method of dealing with exceptions will make your application easier to debug. Recording exceptions into an SQL database or

DevX - Software Development Resource

The Autocomplete TextBox control

The Autocomplete TextBox is a freeware textbox control developed by Neo Components that acts like the ones you find in the latest browsers. Automatically builds a list of entries, saves

DevX - Software Development Resource

AsciiEncode – Convert a string to its ASCII representation

‘ Convert a string to its ASCII representation’ Example: Response.Write(AsciiEncode(“hello”))’ ==> hello” Note: this may be useful when you’re producing the code for HTML forms with ‘ hidden/visible field, and

DevX - Software Development Resource

Avoid the Loss of CSS Style in Netscape V4.x

Sometimes it is very helpful to use a JavaScript feature that supports adding properties to build-in prototype “Objects” at runtime. It is generally known that Netscape 4.x has problems in

DevX - Software Development Resource

Ensuring All Non-NULL Values Are Unique

Say you have a column in a SQL Server table that allows NULL values. You want this column to be unique when it has a value other than NULL. What’s

DevX - Software Development Resource

Book Excerpt: Oracle9i The Complete Reference

hapter 21: Using SQL*Loader to?Load DataIn the scripts provided in Appendix A, a large number of insert commands are executed. In place of those inserts, you could create a file

DevX - Software Development Resource

Specify the Order By Clause in a View

SQL Server does not allow you to include the Order By clause in a view.To do this, consider using the following workaround: USE pubsGOCREATE VIEW AuthorsByNameASSELECT TOP 100 PERCENT *FROM

DevX - Software Development Resource

The Ten Developer Commandments of BREW

QUALCOMM’s Binary Runtime Environment for Wireless (BREW) is a platform that is ideally suited to creating powerful applications on memory/footprint-constrained devices. One of the ways BREW is able to do

DevX - Software Development Resource

Using Quotation Marks in SQL Server

The standard delimiters for literal strings in SQL are single quotation marks (‘). By default, SQL Server reserves double quotation marks (“) as delimiters for database objects.The SQL Server ODBC

DevX - Software Development Resource

Avoid NullPointerException Comparing Strings

The standard way to compare a variable String to a constant is to use this syntax: if(myString.equals(“test”)){ doSomething();} However, if myString is null, a NullPointerException will be thrown. Instead, use:

DevX - Software Development Resource

Securing Your SQL Server

lanning for database security means a number of things. First, you need to take care that the code you send to SQL Server is not vulnerable to SQL injection. Second,

DevX - Software Development Resource

Exceptions are Objects

When a class designer believes that an exceptional condition is recoverable, the checked exception should be thrown. But, many programmers (and I am guilty of this as well) tend to

DevX - Software Development Resource

Get Browser Information

Sometimes, you need to find the Browser in which an applet is loaded. This small bit of code can do the job: public void getBrowserInfo(){ String vendor = System.getProperty(“java.vendor.url”).toLowerCase(); browser

DevX - Software Development Resource

Book Excerpt: Java Development with Ant

ava Development with Ant systematically explores what Ant can do, and how to apply it to your project. Whether you are new to Ant, or an experienced user, this book

DevX - Software Development Resource

Enhance Your Web Site with a Java Slideshow Applet

Not only programmers can enjoy the benefits of Java. Java applets (small Java programs), which can enhance your Web site immensely, are available on the Internet–many for free. Of course,

DevX - Software Development Resource

Learning to Animate in Macromedia Flash MX

acromedia’s Web site contains the prominent claim that 97.8 percent of all Web users already have Flash installed; in other words, those users can view Flash content without having to

DevX - Software Development Resource

Update the ACL of a file from an ASP.NET application

It’s not uncommon that ASP.NET applications have the need to use a personal .config file to write some runtime information. Since ASP.NET applications are not granted the permission to create

DevX - Software Development Resource

Select the transaction isolation level and timeout in a serviced component

Writing a transactional COM+ component with VB.NET is as simple as applying the Transaction attribute to a class that inherits from System.EnterpriseServices.ServicedComponent: Imports System.EnterpriseServices< Transaction()> Public Class BankTransfer Inherits ServicedComponent

DevX - Software Development Resource

Disable COM+ 1.5 applications and components

COM+ 1.5 (provided with Windows XP) has an interesting feature that is missing in COM+ 1.0: the ability to disable entire COM+ applications or just their individual components. You can