New Web Server Controls in ASP.Net 2.0
 
Wizard Web Server Control
 
Wizard is the newly introduced web server control in ASP.NET 2.0. The ASP.NET Wizard control makes simpler many of the tasks that are associated with building multiple forms and collecting user input. The Wizard control provides an easy mechanism that allows you to easily build steps, add a new step, or reorder the steps. . The most common applications that can be developed using Wizard are online tests, registration process and lengthy application forms that cover several pages.
 
Syntax:
<asp:Wizard id=?MyWizard? runat=?server?>
<WizardSteps>
<asp:WizardStep id=MywizardstepA runat=?server? Title=?StepA?>
</asp:WizardStep>
<asp:WizardStep id=MywizardstepB runat=?server? Title=?StepB?>
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
 
Navigation of Wizard
 
You can build linear and non-linear navigation and customize the control's user navigation without writing code. The control's state management allows the user to move forward and backward between steps, and it allows the user to select individual steps at any point, as long as the sidebar is displayed. You can customize the text for navigation in the control's root asp: Wizard element by using the StepNextButtonText, StepPreviousButtonText, and FinishCompleteButtonText properties.
 
Syntax:
<asp:Wizard ID="MyWizard" Runat="server"
StepNextButtonText=" NexButton >>"
StepPreviousButtonText=" << PreviousButton"
FinishCompleteButtonText=" Done!">
 
Personalization of Wizard
 
The actions of the Wizard control can also be customized programmatically. The Wizard control supports templates that permit you to further personalize the interface of the control with the StartNavigationTemplate, FinishNavigationTemplate, StepNavigationTemplate, and SideBarTemplate properties.