Microsoft Visual C
Managing state exercise
Harder than average exercise

This Microsoft Visual C# MANAGING STATE 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: Most popular radio station

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

1) Download the files needed to start this exercise: exercise-784.zip
2) Add the files in the folder above into your current web site and browse to the frmRadioVote.aspx page - you should see the following:
Exercise screen-shot 1614 You can use this form to vote for your favourite station - here someone has gone for radio 4
3) When you click on the Finish survey button, you should see this:
Exercise screen-shot 1615 The votes are not being counted for now
4) Amend this form so that it works as follows:
  • Create hidden labels called lblRadio2Count, lblRadio4Count and lblRadio5Count
  • Create read/write properties called Radio2Count, Radio4Count and Radio5Count
  • Set and read these properties at appropriate times to make the system work
5) When you have everything working, save and close all files.

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..