We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX

ASP.NET 1st Guestbook

This guestbook shows how to use some features of ASP.NET, such as data-binding, database programming, Web Forms security, caching and the Web.Config settings. You’ll also see in action the DataGrid

DevX

FormatSize – Format a size expressed in bytes

‘ Returns a formatted string that shows the size in Bytes, KBytes or MBytes’ according to the size’ Usage:’ Dim ProperSizeString As String = FormatSize(“132100842”)’ -> returns “125.98 MB”Function FormatSize(ByVal

DevX

Managed Security: Build It Right the First Time

roviding a service on the Web entails a wealth of concerns, from system design, network architecture, and application development, to maintenance and security. This last aspect is often overlooked and

DevX

Trim the Leading and Trailing Spaces in a Given String

This functionality is not currently available in Javascript. However, tou can add this function to perform trimming in the strings. Trimming is useful in checking for empty spaces. function RTrim(str){

DevX

Use Any Image as a Background

This code allows any image to be used as a background, and scales that image to fit the browser. Just add it to the end of your HTML page:

DevX

Delete Duplicate Rows from a Table Using the Cursor

This is an advanced solution to delete duplicate Rows from a table using the cursor: create table DupTable ( Field1 varchar(20))goinsert DupTable (Field1) select ‘A11111111’ UNION ALL select ‘B22222222’ UNION

DevX

Translating errno Error Codes to Text

To translate an error code to its verbal description, use the function strerror(). strerror() is declared in as follows: char * strerror(int errcode); The function takes an error code and

DevX

The sig_atomic_t Datatype

Applications that handle signals must distinguish between atomic and non-atomic datatypes. Reading or writing an atomic object is guaranteed to take one instruction. By contrast, accessing a non-atomic object may

DevX

Obtaining a Verbal Description of errno

System calls and Standard Library functions assign a zero value to the global variable errno to indicate success. In case of an error, they assign negative values to errno. On

DevX

Defining a Template Member Function

You can define a template member function in an ordinary class as follows: class C{public: template int func(T* p);};template int C::func(T* p){ return 0;} Note that Visual C++ doesn

DevX

Duplicate the Join Function for VB4 and VB5

The native VB6 Split and Join functions have highlighted a number of useful techniques, and VB5 and VB4 programmers can use this extended facility as well. This code emulates the

DevX

Retrieve Additional File Properties

Several new properties associated with files were not available when the original VB file I/O statements and functions were designed. To easily access these new properties

DevX

Store Primary Key in ItemData

Loading a combo/listbox is pretty easy, and determining what the combo/listbox Text property selects is even easier. But if you load a table that contains duplicate values, you might run

DevX

ExplodeString – Add a filling char between a string’s chars

‘ “Explode” a string by inserting a given filling character’ between consecutive characters in the original string” The source string cannot contain Chr$(0) charactersFunction ExplodeString(ByVal Source As String, Optional ByVal

DevX

VC++ to Aim at Full ANSI/ISO Compliance?

Herb Sutter is a recognized expert on C++ software development. Author of more than 150 technical articles and of the widely acclaimed books Exceptional C++ and More Exceptional C++, he

DevX

Using Images for Table Borders

This method consists of creating empty rows and columns where an image will show through around a central cell that will contain the table’s content.To use an image as a

DevX

Encrypt Your Userid and Password

The result is a password script that won’t crumble as soon as the user views the page’s source. Here’s the code: Enter username: Enter password:

DevX

Prevent a Document from Getting Cached

Preventing the document from being cached ensures that a fresh copy of the document will always be retrieved from the site, even during the user’s current session, regardless of how