Welcome to imar.spaanjaars.com


What's New Lately?
Published 20 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 ...
How Do I Bind a Database to a WebFX Combo Box Control?
Published 20 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 ...
What do I need Protected WithEvents for?
Published 20 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 ...
Change the CSS Class of an Object in Your Page
Published 20 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 ...
Retrieve the Current Run-Time Directory of the .NET Framework
Published 21 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 ...
Regular Expression for a Strong Password
Published 21 years ago
This snippet shows a Regular Expression for a strong password.
Read on ...
Change the Printer in Visual Basic 6
Published 21 years ago
The following snippet shows you how to change the current printer with Visual Basic 6 code.
Read on ...
Preselecting an Item in a Drop-Down List
Published 21 years ago
The following JavaScript code can be used to preselect an item in a drop-down list.
Read on ...
How Do I Preselect an Item in a Drop-Down List?
Published 21 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 ...
How Do I Get the Names of all Embedded Resources in an Assembly?
Published 21 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