How Do I Determine the Security Account that IIS Uses to Run My Web Site?

Posted by: Imar Spaanjaars at Sunday, May 09, 2004 3:18:33 PM in: Security
It's important to understand the account that IIS is running under when you need to make changes to the security settings. If, for example, your Web application writes to files or to a database, you'll need to grant the correct permissions to the folder or database. Before you can change these security settings, it's important the know what account IIS is using. This FAQ details the various options available, both for "classic" ASP and ASP.NET applications.
Read on ...

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 09, 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 Change the Background of an HTML Element Through Code?

Posted by: Imar Spaanjaars at Sunday, May 09, 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 06, 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 04, 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 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 ...

How can I make a class variable accessible from different object instances of the same class?

Posted by: Peter Lanoie at Wednesday, April 14, 2004 8:52:52 PM in: ASP.NET 1.x
You may have the need to be able to access the same instance of a class variable from multiple object instances of that class. This is known as a "class" scope variable. Here I'll explain how it's done.
Read on ...

How Do I Enable Visual Styles in My .NET Win Forms Application?

Posted by: Imar Spaanjaars at Tuesday, April 13, 2004 10:39:36 AM in: .NET Win Forms
With the .NET Framework 1.0 it was already possible to enable Visual Styles for your .NET Windows Forms so the application took on that shinny new Windows XP look. Enabling Visual Styles was quite a hassle, though. You had to create a manifest file that contained a lot of gobbledygook and it wasn't as straight-forward as you'd hope.
With the .NET Framework 1.1, however, things have become much easier.
Read on ...

How do I Handle Errors and Send an Error Notification from ASP.NET Applications?

Posted by: Peter Lanoie at Monday, April 12, 2004 8:23:26 PM in: ASP.NET 1.x
How do I set up my ASP.NET Web application to notify me with the details of an error when one occurs on my Web site? And how do I give the user a friendly message telling them an error has occurred?
Read on ...

How Do I Get Detailed Information About Errors in ASP or ASP.NET Pages?

Posted by: Imar Spaanjaars at Wednesday, March 31, 2004 8:48:04 AM in: ASP 3.0

When you are trying to debug your ASP or ASP.NET pages, it's important to get detailed information about your errors. Knowing the cause of the error is often the biggest part of solving the problem.
By default, Internet Explorer will hide most of the raw error message from you, and instead will give you a “Friendly” HTTP error message. This FAQ will show you how to disable this feature so you can see the original error that the ASP run-time threw at you. This will help tremendously in debugging your ASP applications.

Read on ... 1234