The Latest

DevX - Software Development Resource

Sending files to the browser

The ASP.NET Response object has been greatly expanded in its capability to send output to the client browser. For example, the WriteFile method can send the contents of any text,

DevX - Software Development Resource

Saving HTTP requests for better debugging

The new SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True

DevX - Software Development Resource

Parse URLs with the System.Uri class

The Url and UrlReferrer properties of the Request ASP.NET object return a reference to the URL of the page and the URL of the page that referred to this one.

DevX - Software Development Resource

Using String-based Data Validation

hat do a command shell, an online ordering system, and a report generator application have in common? Not much, really. Yet they all base their operation on an external source

DevX - Software Development Resource

Learn Better Ways to Manage Data in ASP

lthough you may not be able to switch to ASP.NET at your location, you can take full advantage of XML and XSLT transforms now to make your site more flexible,

DevX - Software Development Resource

Toolwindow for All PC Languages

A very customizable ToolWindow for all development environments(like .NET,Visual Studio6, Java) that inserts text, executes macros, launches programs(with parameters), and launches webpages. More than just inserting simplecode, you have 15

DevX - Software Development Resource

Display a directory tree

Thanks to the GetDirectories and GetFiles methods of the System.IO.Directory class, you need very little code to iterate over all the directories and files of a directory tree. For example,

DevX - Software Development Resource

Filter file names on their names or attributes

The GetFiles and GetDirectories methods of the System.IO.Directory class can take an argument containing wildcards, to filter the result: ‘ Display all the *.txt files in C:DOCS.Dim fname As StringFor

DevX - Software Development Resource

Reading text files

In Visual Basic .NET you read a text file by first opening a StreamReader on it, and then iterating over all its lines until its Peek method returns -1: Dim

DevX - Software Development Resource

Implementing ICloneable – Deep copies

The simplest way to create a generic deep copy routine, that is a procedure that can create a true, distinct copy of an object and all its dependent object, is

DevX - Software Development Resource

Implementing IClonable – Shallow copies

An object that want to support cloning should implement the ICloneable interface. This interface exposes only one method, Clone, which returns a copy of the object. The ICloneable specifics don’t

DevX - Software Development Resource

Create directory paths

Visual Basic 6’s MkDir command, as well as the DOS MD command, can create only one subdirectory and fail if any subdirectory on the specified path doesn’t exist: ‘ This

DevX - Software Development Resource

How to Create a Disaster Recovery Plan

The key to surviving an IT-disabling disaster is a business continuity strategy, a set of policies and procedures for reacting to and recovering from such an event, and the main

DevX - Software Development Resource

A Hard Lesson Learned: Have a Data Recovery Plan

owards the end of an otherwise typical business day in September, Kurt Sundling, Technical Operations Manager for Monaco Coach Corporation, got word that the Monaco staff’s attempts to access Help

DevX - Software Development Resource

IBM Director Gives Expert Advice for Contingency Planning

Don DeMarco, IBM Director  s companies become more and more dependent on information, the business-continuity tolerance for information loss becomes less and less, particularly in e-business, says Don DeMarco, Director,

DevX - Software Development Resource

Old Hacks Never Die, They Just Mutate

evX recently received an article submission that purported to show how to hack the Passport security model. Much excitement among the editorial staff over the prospect of reporting a vulnerability

DevX - Software Development Resource

Implement a Generic Custom Validation Control

This Tip applies to Microsoft .NET Framework. using System; using System.Text.RegularExpressions; public class CustomValidations { public CustomValidations() { } /// /// This method is used for validating _the string and

DevX - Software Development Resource

Enable the Tab Key in the TextArea

The following script works fine in IE4 or above: Enable Tab in Textarea Related Posts How To Block Text Messages On AndroidLA Clean Energy Goals Hinge on LeadershipMeet The Next

DevX - Software Development Resource

A New Way to Deal with Popup Windows

When creating a popup window from a hyperlink or button, I often get an error because I try to do it myself and the author has hard coded the same

DevX - Software Development Resource

Flipping a Picture in HTML

Using this code, you can flip any picture in HTML vertically as well as horizontally: Related Posts Serialize an Object to a JSON StringNew Electric Rebates for Low-Income DriversSamsung Unveils

DevX - Software Development Resource

Create Temporary Tables in MS SQL Server 7.0

Sometimes a user wants to create a temporary table in the database during the execution of a stored procedure or sequence of SQL queries. To create a temporary table that

DevX - Software Development Resource

Check Which Files are Included in a Backup Device

In SQL Server, if you just want to check which data- and logfiles are included in a database backup device, you can use ‘RESTORE FILELISTONLY FROM xyz’ (with xyz representing

DevX - Software Development Resource

Control the Scope of a Singleton in an Application Server

Here is the code defining a singleton class: public class SingletonClass{ private static int id = 0; private static SingletonClass sclass = null; private SingletonClass(){} public SingletonClass getInstance(){ if(sclass ==null

DevX - Software Development Resource

Handy NT Administrative Shorcut

Recently, I came up with an easy way to quickly administer a single server from a click away on my desktop.When you need to check a share resource, share permissions

DevX - Software Development Resource

How to Invoke an Applet Packaged as a JAR File

Just use the following code in your html page and your applet will be executed. Related Posts Find the Number of Processors AvailableImporting Data from Excel into SQL ServerUnderstanding CopyOnWriteArrayListImport

DevX - Software Development Resource

How to Read Standard Output from Another Program

In the java.lang package there exists a class called “Runtime”. With this class it is possible to get the runtimethread of your Java program.The exec method lets you create a