Assignment Instructions

  1. Create a web page called assignment5.aspx
    1. In the <body> element, create a <h1> element at the top of the webpage, with the words "Assignment 5", and center the words.
    2. Below <h1> element, add the <h2> element with the words "Part 1". Set the alignment and colors as you wish.
    3. In the Web Page file, add a Label Web Control. (Delete the Text="Label" attribute/value pair.)
    4. In the Visual Basic file, create a Load Page method. (Click "(Page Events") on the top-left drop-down menu. And then click "Load" on the top-right drop-down menu.)
    5. Create two Decimal variables and initialize them to two different Decimal numbers.
    6. Use a Boolean operator to see if the first Decimal is larger than the second Decimal.
    7. Make a String variable that says: "The first Decimal is larger than the second Decimal is: (true or false)", where (true or false) is the result of the Boolean operator.
    8. Send the message to the Web Page and display the message on the Web Page.
  2. In the same webpage called assignment5.aspx
    1. Add the <h2> element with the words "Part 2".
    2. Add two textboxes, a button, and a label.
    3. Ask the user to enter two Decimal numbers.
    4. On the button, write "Largest number".
    5. Click on the button to make a button click method.
    6. In the Visual Basic file, get the input from the user and save it as type Decimal.
    7. Use if statements to determine the largest number.
    8. Make a String variable that says: "The largest number is: X", where X is the largest number.
    9. Send the message to the Web Page and display the message on the Web Page.
  3. To save your data for the future use, you should bring a USB flash drive to class, and/or save your work on the T drive on the classroom computers. (When you turn off the computers in the lab, all your data will be erased, except for what is on the T drive.)
  4. You need to show me your ASP.NET web page in class in order to get credit for this assignment. If you do not finish during class, then you need to complete the assignment at home, and show the assignment to me at the beginning of the next class.

Click to validate the HTML code

Click to validate the CSS code