Microsoft Visual Basic
Basic web controls exercise
Average difficulty

This Microsoft Visual Basic BASIC WEB CONTROLS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ASP.NET 2.0 USING VB course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Car repair form - using dropdown list

A full answer to this exercise is provided as part of the training course!

1) You work in a car repair shop and have dubious morals.  Create a new form called frmCarRepairExcuse.aspx which lets you enter how much any given repair will cost, and why it is so expensive:
Exercise screen-shot 1598 This form includes a dropdownlist - you can enter items within it using the Items property
2) Add code to your Enter button so that when clicked it displays the information entered in a previously hidden label.  To get at the choice made in a dropdownlist, look at its SelectedItem.Text property.
Exercise screen-shot 1599 What the answer might look like
3) Save and close all open files.

Thank you for showing an interest in this ASP.NET 2.0 using VB training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..