Create an empty Web Site application named Circle and save it in the VB2015Chap12 folder. Add a
Question:
Create an empty Web Site application named Circle and save it in the VB2015\Chap12 folder. Add a new Web page named Default.aspx to the application. Change the DOCUMENT object’s Title property to Circle Area.
a. Use Figure 12-44 as a guide when designing the Web page. The circle image is contained in the VB2015\Chap12\Circle.png file. Set the RequiredFieldValidator control’s ControlToValidate property to txtRadius. Also sets its ErrorMessage and ForeColor properties as appropriate.
b. Open the Code Editor window. Use comments to document the application’s name and purpose as well as your name and the current date. Also enter the appropriate Option statements. Code the Calculate Area button’s Click event procedure. Use 3.14 as the value for Pi. Display the area with one decimal place.
c. Save and then start the application. If you receive the error message shown earlier in Figure 12-41, right-click Web.config in the Solution Explorer window and then click Open. Then use one of the two solutions shown earlier in Figure 12-42. Click File on the menu bar and then click Save Web.config. Close the Web.config window and start the application again.
d. Test the application appropriately and then close the browser window. Close the Code Editor window and the application.
Figure 12-41
Figure 12-42
Figure 12-42
Step by Step Answer: