Datasheet

solution that some people used was the Wizard Navigator in the User Interface Process (UIP) Application
Block, created by the Microsoft Patterns and Practices Group at
http://msdn.microsoft.com/
library/default.asp?url=/library/en-us/dnpag2/html/cabctp.asp
.
Microsoft’s online links break a lot, but you should still be able to find the UI Application Block with a
search of the MSDN Architecture Center’s Patterns and Practices resource pages.
Wizards in ASP.NET v2.0
Wizards are no longer a hack in ASP.NET 2.0. They are easy to use and well supported by Visual Studio
2005. The next section shows how to implement a wizard.
Implementing an ASP.NET 2.0 Wizard
ASP.NET 2.0 wizards are implemented as controls. To use them, simply add a new wizard control to the
Visual Designer and start setting properties. This section describes how to implement ASP.NET 2.0 wiz-
ards through a sample menu selection application. There are various choices to be made along the way,
and the wizard will manage navigation based on input preferences. The following steps explain how to
create our sample application:
1. Create a new Web project. To do this, select FileNewWeb Site, select the ASP.NET Web Site
template, and change the directory location to WizardDemo as shown in Figure 1-1.
Figure 1-1
2. Click the OK button and Visual Studio 2005 will create a new project, as shown in Figure 1-2.
3. If you are in HTML view, as shown in Figure 1-2, click the Design link at the bottom left of the
editor to enter Design view.
4. In Design view, locate the Toolbox, which is on the left side of the IDE. You can open it by hov-
ering over the tab labeled Toolbox. Click on the Standard area of the Toolbox and select the
Wizard control. Drag and drop a Wizard control onto the form as shown in Figure 1-3.
2
Chapter 1
04_597663 ch01.qxp 4/25/06 9:54 PM Page 2