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. 

Server Error in ' Application. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). Description: An unhandled exception occured during the execution of the current web request. Please review the siack trace for more informalion about the error and where it eriginated in fhe code.

Figure 12-41

Figure 12-42

Figure 12-42

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: