
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

n part 1 of this series you learned how PERL has been incorporated into the Visual Studio .NET family. This article explores its membership in more detail. PERL and its

Use this function for getting the 10th next element from an array with “circular” contents such as “Monday,” “Tuesday,” and so on: intCurrent = WrapIndex(Index:=intCurrent, _ Move:=+10, UpperBound:=6) You don

VB6 introduced a new Style=5-tbrDropDown of the Button object for the ToolBar control. In this case, you can add one or more ButtonMenu objects to the current Button. Unfortunately, you

function IsIE(){ var str=newString(Request.ServerVariables(“HTTP_USER_AGENT”)).toUpperCase(); return (str.indexOf(“MSIE”)>-1)?true:false;}if(IsIE()==false){ Response.Write (“”); } else{ Response.Write (“”); }


I first used this function in the VB4 days when CommandButtons didn

Have you ever had a zero-length string parameter fail when attempting to execute a stored procedure from ADO? You

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

Detect the client’s screen resolution using Javascript and then stuff it into an ASP variable!

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

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

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

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

‘ A custom routine that works like FormsAuthentication.RedirectFromLoginPage ‘ but lets you control the authentication cookie’s expiration date’ Example: create an auth cookie that lasts 7 days’ RedirectFromLoginPageEx(username, persistent, 7)Function

‘ 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

‘ Output an image as a binary stream to the Response objectSub ShowImage(ByVal bmp As Bitmap) ‘ Clear current content and set returned content type HttpContext.Current.Response.Clear() HttpContext.Current.Response.ContentType = “image/jpeg” ‘

‘ Return the absolute Url of a secured page (that uses the https protocol)’ The input string is the page’s relative path’ Example: Dim url As String = GetSecuredPageUrl(“./Admin/Login.aspx”)Function GetAbsoluteSecuredPageUrl(ByVal

If you develop a custom control and want to give the option to output client-side javascript code, you’ll likely have a EnableClientScript that allows the developer to specify whether the

‘ Return the value of the specified custom key, stored in the Web.Config file.’ If the value has been already requested before, the function returns its ‘ cached value.’ The

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

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

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

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

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

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

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:

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,

When you invoke a synchronized static method, you obtain the lock associated with the Class object in whose class the method is defined.When you apply synchronized to instance methods and

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

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











