Welcome to imar.spaanjaars.com

image
Welcome to the personal web site of Imar Spaanjaars where I write about software development with a focus on Microsoft web technologies
Image representing the Blogs category

What's New Lately?

Published 19 years ago

Lately I haven't made much changes to the site; most features are ready and work as expected. I fixed a few bugs in the Voting Controls (and added enhanced design time support for them; a topic I might write an article about some day) but that's about it.

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 FAQs category

What do I need Protected WithEvents for?

Published 19 years ago

I've noticed "Protected WithEvents" in the declarations for my controls on an ASPX web form. What's this all about? What does it mean?

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 FAQs category

Retrieve the Current Run-Time Directory of the .NET Framework

Published 19 years ago

This snippet shows you how to retrieve the directory of the "current" .NET Framework. The path returned is the location of the version of the .NET Framework that your application is using.

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 FAQs category

How Do I Preselect an Item in a Drop-Down List?

Published 19 years ago

In HTML, it's pretty easy to preselect an item in a drop-down list. At design-time, or with a dynamic server page, at run-time at the server, all you need to do is add the selected attribute to the <option> element you want to select. If you want to select the item programmatically through JavaScript code, you'll have to follow a different route.

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 ...

Mobile: False

Crawler: True

I: False