Q&A, "Display and Manage Images in ASP.NET," by John Papa
Visual Studio Magazine, July 2004

These quick instructions will help you get the sample application up and running. 

1) To make sure you can use the TreeView control, first download the Microsoft Internet Explorer WebControls (IEWC) download which is available at http://www.asp.net/IEWebControls/Download.aspx?tabindex=0&tabid=1

2) The IEWC download comes with a readme file that explains how to install the IEWC components and get them up and running. Follow these instructions carefully. 

3) Create a C# WebForm / ASP.Net application using Visual Studio.Net.

4) The .Net assembly for the IEWC (Microsoft.Web.UI.WebControls.dll) should be copied to the bin folder of your new web application.

5) Reference the Microsoft.Web.UI.WebControls.dll assembly. At this point you should now see the reference to the dll in the projects references list and the actuall dll in the bin folder of your project.

6) Copy the webctrl_client folder to the root of your project. To include the TreeView control or any of these controls in your ASP.Net application, start with copying the  webctrl_client folder and all of its contents to the root of your ASP.Net application.  These files contain the controls behaviors and their images.

7) Open the zip file with the sample code.

8) Copy the Images folder to the root of your web application. This contains the sample images used in the application. 

9) Copy the *.aspx files and their associated codebehind pages (*.aspx.cs) to the root of your application.

10) Add the follow XML to your web.config file in the configuration section. 

  <!-- Image Folder -->
  <appSettings>
	<add key="ImageFolder" value="Images/"></add>
  </appSettings>




