Microsoft Developer
Basic programming exercise
Average difficulty

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

Exercise: Changing price of drink using command buttons

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

1) Create a new form called frmDrinkPrice.aspx:
Exercise screen-shot 1607 A very simple form - initially the price should be 30
2) Attach macros to the + and - buttons so that clicking on the buttons either increases or decreases the price a penny at a time.  Make sure that you work with the correct data types at all times!
Exercise screen-shot 1608 Here we have clicked on the + button twice
3) Save and close down any files open.

Thank you for showing an interest in this ASP.NET 2.0 using C# 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.  All rights reserved.  Design by Branches.