devxlogo

Tip Bank

Developing a NIO-Based Client

This tip shows you how to develop a New I/O-based client. As you probably know, NIO offers many advantages such as speed and the ability to maintain a large number

Nested Functions in C++

Although C++ does not allow nested function declaration, you can simulate it using a structure with a static function: void outer(){ static int v1 = 5; int v2 = 5;

Stop Users from Right-Clicking on Your Web Site

To prevent your users from performing any of the other commands available by right-clicking on a web page in Internet Explorer, simply modify the opening &ltbody&gt tag of your HTML:

Developing a NIO Server

As you probably know, NIO offers many advantages?like speed and a large number of concurrent connections: import java.io.*;import java.net.*;import java.nio.*;import java.util.*;import java.nio.channels.*;import java.nio.charset.*;public class ServerNIO{ public static void main(String[] args){

Simplify Classic ASP Debugging in VS 2005

Like its predessor, VS 2005 does not allow you to debug classic ASP pages by default. Instead, you have to manually attach the ASP worker process (w3wp.exe). Follow these simple

Add an AutoIncrement Column to a DataTable

Adding an AutoIncrement column to a DataTable is quite simple: When you create a DataColumn, set its AutoIncrement property to true. The following code demonstrates: DataColumn posId = table.Columns.Add(“PositionId”, typeof(int));posId.AutoIncrement