As mentioned earlier, the ReadMe file accompanying this book's sample files provides the instructions to install the samples for this book. However, you might also want to create your own ASP.NET Web application so that you can develop .aspx pages to test any controls that you implement. If you are using the standalone .NET Framework SDK, you will have to create an IIS virtual root, which maps the physical directory containing your Web application to an IIS virtual directory. (If you are using Visual Studio .NET, you do not need to do this because the ASP.NET Web application wizard creates a virtual root for you.) We will assume that you have created a directory (such as C:\MySample Web) that will contain pages and other elements of your ASP.NET Web application. We will also assume that you have installed IIS and the .NET Framework SDK on your computer. The following list shows how to create an IIS virtual directory that maps to the physical directory of your Web application:
If you named your Web application MySampleWeb and it contains a page named MyPage.aspx, you can test whether the IIS virtual directory was successfully created by entering http://localhost/MySampleWeb/MyPage.aspx in the address bar of your Web browser. You should also create a bin subdirectory to place assemblies that your Web application requires, such as the assembly that contains your controls. To create the bin directory of your application, you must create a directory named bin within the root of your Web application ”for example, C:\MySampleWeb\bin. Chapter 5, "Developing a Simple Custom Control," describes the purpose of the bin directory in more detail. |