Assignment Instructions

  1. Create a new ASP.NET Empty Web Site on your computer in new folder called WebSite7
  2. Part 1: Create a web page called assignment7.aspx
    1. Nested inside the <body> element, create a <h1> element at the top of the webpage, with the words "Assignment 7", and center the words.
    2. Nested inside the <body> element, below the <h1> create a <h2> element with the words "Part 1", and center the words.
    3. In the Web Page file, add three Labels to your web page that displays the output of the Page_Load method. (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. Display these three things:
      1. Display "Aloha!" 7 times.
      2. Display "I like fish!" 25 times.
      3. Display the numbers from 1 to 10. For example: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  3. Part 2: On the same web page
    1. Nested inside the <body> element, below the output for Part 1 create a <h2> element with the words "Part 2", and center the words.
    2. Ask the user to enter a sentence and a number (integer).
    3. Add two textboxes, a button and three labels to your web page.
    4. Double click on the button to create the button click method.
    5. In the Visual Basic file, get the inputs from the user and save it as type String and Integer.
    6. Do these three things:
      1. Display the user's sentence 7 times.
      2. Display the numbers from 1 to the user's number.
      3. Display the users' sentence the user's number of times.
  4. To save your data for the future use, or to show me a late assignment for 50% partial credit, you should bring a USB flash drive to class, and/or save your work on the S 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 S drive.)
  5. 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