Image representing the Snippets category

A Scrollable Table With a Fixed Header

Published 19 years ago

Consider this solution as obsolete as there are better alternatives available. Search the comments to this article for a few external links to better implementations.

If you need to present a lot of table based data, but you don't want to spoil your page layout with a very long table, you can use the following trick to create a scrollable table with a fixed header.

Read on ...
Image representing the Snippets category

Smoothing Out Page Transitions

Published 19 years ago

To avoid page flickering when you (re)load a page, you can add the following (Internet Explorer only) <meta> tags to the <head> section of your page.

Read on ...
Image representing the Snippets category

Passing Multiple Parameters to a Crystal Report Programmatically

Published 19 years ago

Passing a parameter to a Crystal Report is easy; all you need to do is drop a ready-made parameter field from the Field Explorer to your report and when the report is loaded, the user is asked for the parameter's value automatically.

Passing multiple parameter values to a report programmatically is a bit trickier.

Read on ...
Image representing the Snippets category

How Do I Bind a Database to a WebFX Combo Box Control?

Published 19 years ago

An often requested feature in Web applications is a drop-down that behaves like a Combo Box in Windows applications. If you start typing in a drop-down in a Windows application, it will preselect an item that starts with all the letters you type in. The drop-down in a Web browser preselects the item that starts with the last letter you typed in. Not very convenient. Fortunately, there are many replacements for the default drop-down available. One of them is the WebFX Combobox. In this snippet, I will demonstrate you how to fill this control with information from a database. I won't be discussing how the control works, and I also won't explain how you can use the advanced features of the control that allows you to add new data. This snippet will simply demonstrate how to generate the client-side code for the drop-down with information from a database.

Read on ...
Image representing the Snippets category

Change the CSS Class of an Object in Your Page

Published 19 years ago

It's easy to change style information of any object in your HTML page. With a bit of JavaScript you can change, for example, the border, or background-color of a paragraph.

Read on ...
Image representing the Snippets category

Regular Expression for a Strong Password

Published 19 years ago

This snippet shows a Regular Expression for a strong password.

Read on ...
Image representing the Snippets category

Change the Printer in Visual Basic 6

Published 19 years ago

The following snippet shows you how to change the current printer with Visual Basic 6 code.

Read on ...
Image representing the Snippets category

Preselecting an Item in a Drop-Down List

Published 19 years ago

The following JavaScript code can be used to preselect an item in a drop-down list.

Read on ...
Image representing the Snippets category

How Do I Get the Names of all Embedded Resources in an Assembly?

Published 19 years ago

Because the naming scheme of embedded resources is sometimes a bit awkward (you have to take the Default Namespace, folder names and resource file names into account), it can be useful to display a list of all embedded resources in your assembly with their Fully Qualified names. Put the following code in a method, like the constructor for your control for example, to get all the names in the Output window.

Read on ...
Image representing the Snippets category

How Do I Insert a Null Value in an Access Database?

Published 19 years ago

When you need to insert a null value into a column in an Access database, you could use "" to indicate a zero-length string. However, a zero-length string is not the same as Null. To insert a Null value, simple pass the keyword Null for the column, as shown in the code example.

Read on ...

Mobile: False

Crawler: True

I: False