alt
Advertisement
Sponsored links
Online Training
Career Series
Exforsys
Exforsys arrow Tutorials arrow ASP.NET 2.0 arrow ASP.NET 2.0 Creating Web Wizards
Site Search


ASP.NET 2.0 Creating Web Wizards
Article Index
ASP.NET 2.0 Creating Web Wizards
Page 2

.

.

6. The Properties area now shows the new step.

7. Set the Title property to Finished.
8. Set the StepType property to Complete.

9. Click OK.

The New completion step can now be edited. We shall configure the data entered by the user in the previous two steps.

To edit the completion step

1. Right-click the Wizard control and choose Show Smart Tasks.
2. In the Common Menu Tasks dialog box, use the Step drop-down list to choose the Finish step.
3. Drag a Label onto the control, leaving the default name of Label1.
4. Drag another Label onto the control, leaving the default name of Label2.
5. Save the file.

The completion step will display the data entered by the user. Use the page's Load event to assign the values from the first two steps onto the labels added to the completion step.

To show the user's data

1. Open Default.aspx.cs
2. On the objects drop-down list, choose (Page Events).
3. On the events drop-down list, choose Load.
4. In the method that is stubbed out for you, add the following highlighted code:

void Page_Load(Object sender, System.EventArgs e)
{
Label1.Text = TextBox1.Text;
Label2.Text = TextBox2.Text;
}

5. Save the file.

Testing the Wizard Control

1. Press CTRL+F5.
2. Type a name in the name TextBox control for Step 1.

3. Click Next.

4. Type an e-mail address e-mail TextBox control for Step 2.

5. Click Finish. The developer can set some action to be performed when the button is clicked by defining an event handler for the button.

It must be noted that the entire project has been deployed with the least amount of code. It is also indicative of the quality of services that Microsoft aims to provide its developers and users.

In the next section of the tutorial we shall explore the potential of the DynamicImage Control.


Trackback(0)
Comments (0)add comment

Write comment

busy

 
< Prev   Next >
Exforsys Offers
© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape