The width of an object is 15
The length of an object is 30
The area is the length x width.
There are at least three ways to tell asp to display the area:
The second way uses the <% response.write iarea %> method. This gives us the following statement:
The area is:
450
A third way involves correcting the code given by our instructor. In order to use this code, the value of the area must first be converted to a string. You cannot contcantenate a string and an integer. The corrected code for this method is: <% response.write "The area is " & sArea %>
The area is 450