Why Don't I See a Security Tab on the Properties dialog for My Files and Folders in Windows XP?

Posted by: Imar Spaanjaars at Sunday, May 9, 2004 2:34:46 PM in: Security
You often need to make changes in the security settings of your NTFS disk, for example to allow your Web server to read or write to certain files. You make these changes on the Security tab of the Properties dialog for the file or folder you are working with. However, on a Windows XP computer that is not part of a network, this tab is often not visible. Follow these steps to enable this tab.
Read on ...

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

Posted by: Imar Spaanjaars at Sunday, May 9, 2004 1:25:13 PM in: ADO
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 ...

ADO Connection and Recordset

Posted by: Imar Spaanjaars at Sunday, May 9, 2004 1:08:30 PM in: ADO
This simple snippet demonstrates how to create and setup an ADO Connection to retrieve and display information from a database.
Read on ...

DocTypes You Can Use in Your HTML and XHTML Pages

Posted by: Imar Spaanjaars at Sunday, May 9, 2004 12:37:00 PM in: (X)HTML
The following doctypes are available for HTML 4.01, XHTML 1 and XHTML 1.1.
Read on ...

How Do I Change the Background of an HTML Element Through Code?

Posted by: Imar Spaanjaars at Sunday, May 9, 2004 12:23:03 PM in: CSS
With a little bit of JavaScript, it's easy to change the background image of any object through code. All you need to do is retrieve a reference to the element you want to change, and then set its style.backgroundImage property.
Read on ...

How Do I Add an Additional Item To a Databound DropDownList Control in ASP.NET?

Posted by: Imar Spaanjaars at Thursday, May 6, 2004 2:59:29 PM in: ASP.NET 1.x

It's a common practice to bind some data to a DropDownList or ListBox control. The data for these controls can come from a wide variety of DataSources including Arrays, ArrayLists, HashTables and DataSets. Quite often, though, you'll have the need to add an additional item to the beginning of the list.

Read on ...

How Do I Detect Design-Time Vs Run-Time in a .NET Control?

Posted by: Imar Spaanjaars at Tuesday, May 4, 2004 8:31:13 PM in: .NET Server Controls
When you're designing custom controls in Visual Studio .NET, you'll often need to distinguish between design-time and run-time. You could, for example, load a static image, or create a made-up DataSource at design-time while you use a real image or DataSource at run-time. The following snippet allows you to determine whether you're currently in design-time or not.
Read on ...

How Do I Insert 'Now Playing' Info to my Posts on P2P?

Posted by: Imar Spaanjaars at Monday, April 26, 2004 7:34:08 AM in: .NET General

Over the past few weeks, I received numerous e-mails from P2P contributors asking me how I was able to insert information in my signature at the Wrox P2P forum about the music I am listening to when I make the post. Some wondered if I had nothing to do at all, and had all the time in the world to insert this information manually. Others already had the idea I had automated this process and were interested in the technical solution of this, rather useless, feature.

In this article I'll explain where I got the idea for this automated signature, what techniques and concepts were involved, and where I found the information required to build the solution.

Read on ...

How Do I Setup IIS to Allow it to Use Network Resources?

Posted by: Imar Spaanjaars at Wednesday, April 21, 2004 12:25:07 PM in: Security
If you're working with files (creating, copying, deleting etc) in your ASP applications, you have probably configured the permissions for the IUSR_MachineName account so it is allowed to write to the folder where your files reside. However, if you want to write to a folder on another machine you'll run into problems. This FAQ describes a few common scenarios to overcome these problems.
Read on ...

Logging Errors to the Event Log in ASP.NET Applications

Posted by: Imar Spaanjaars at Thursday, April 15, 2004 11:33:55 PM in: ASP.NET 1.x

Let's face it. We're not living in a perfect world. I am not a perfect programmer, and the same probably applies to you (otherwise you would be stinkin' rich, laying on the beach somewhere drinking a Bacardi and Coke, instead of reading this article).

Because we aren't perfect, we know we are going to run into errors in the applications we write sooner or later. This article will explain how you can catch these errors in your ASP.NET applications and log them to the Windows Event log, so it's easy to review them later. The article focuses on ASP.NET, but the principle applies to other .NET applications as well.

Read on ... 12345678910111213141516171819202122232425262728293031