Assignment 1

Controls

Instructions

Create a web page that looks like the following:

first web page

You can use xhtml or label controls for the headers and text. For the bulleted list, use the ASP Bulletedlist control. Create a string array with all the values listed in the image above and bind the array as a datasource to the BulletedList control.(Do this in the Page Load event)

For the Donation Calculator, in the button's Click event write the code to take any donation entered into the textbox and divide it into the 90% (.9) given to charity and the 10% (.1) reserved for maintenance of the non-profit.

Make constants for the two percents. Use naming conventions for variables and those controls referred to in code.

Grading

The assignment is worth 10 points. The points will be awarded as follows:

  • 2 points for page layout
  • 3 points for the BulletedList and array
  • 2 points for Constants and naming conventions
  • 3 points for Donation Calculations