Head section of the document

Assignment Help Basic Computer Science
Reference no: EM131531455

For this exercise, you will build a one-page application with the user interface that's shown below. This time, the user will enter the sales price and discount percent, and the application will calculate and display the discount amount and total price. If a user entry is invalid, an error message will be displayed to the right of the related text box.

Start a new web application and build the form

1. Start a new web application named XEx02Quotation.

2. Add a web form with the name Default.aspx. Type "Price quotation" inside the title tags in the head section of the document, and delete the default div element in the body section.

3. Add an h1 heading to the form element with the text shown above.

4. Add a table to the form below the heading with 8 rows and 3 columns. (The third column will be used for validation controls.)

5. Add the text and button shown above to the cells in the first, third, fourth, sixth, and eighth rows of the first column.

6. Adjust the width of the table by dragging its right handle, and adjust the widths of the columns by dragging their right borders so the widths are similar to what's shown above. (It may take some time to get this right, and the form may look different in Design view than it does when you run the application.)

7. Add text boxes to the first and third rows in the second column, and add label controls to the fourth and six rows in the second column.

8. Use the Properties window to set appropriate IDs for the controls and to format the first text box and the two labels with bold type. Then, use the Properties window to set the text for the button to "Calculate".

9. Test this form to see how it looks in a browser, and make whatever adjustments are necessary.

Add the C# code for the form

10. Create an event handler for the Click event of the Calculate button. This handler should calculate the discount amount and total price and display them in currency format as shown above.

11. Test this form to see whether it works correctly, and make whatever corrections are necessary.

Add validators for the text boxes

12. Add a required field validator in the column to the right of each text box that tests whether an entry has been made in the text box. If an entry hasn't been made, "Required" should be displayed.

13. Add a range validator in the column to the right of each text box. The one for the Sales Price should test to see whether the entry is between 10 and 1000, and an appropriate message should be displayed if it isn't. The one for the Discount Percent should test whether the entry is between 10 and 50, and an appropriate message should be displayed if it isn't.

14. If necessary, adjust the C# code for the page so it only does the calculations if the entries are valid.

15. Run the application, and see that it throws an error because it's using unobtrusive validation but can't find the jquery library.

16. Turn off unobtrusive validation for the page. Then, run and test the application, and make whatever corrections are necessary.

Reference no: EM131531455

Questions Cloud

Key roles in the implementation plan : Discuss which users play key roles in the implementation plan. Which users are most important to the success of the implementation? Why?
Write about pursuing career opportunity as hadoop developer : Write a paper about Pursuing career opportunities as a Hadoop developer. Briefly summarize (a paragraph or two for) each of the proposed (AR) iteration.
Did you find particularly interesting or surprising : Describe your reaction to the readings this week.More specifically, what, if anything, did you find particularly interesting or surprising?
What is the difference between an overrun and framing error : What happens when bits 5 and 6 of the ACIAs control register are loaded with 1,1?
Head section of the document : Add a web form with the name Default.aspx. Type "Price quotation" inside the title tags in the head section of the document, and delete the default div element.
Write your conclusion of written report for the it solution : Finishing the IT Solution and Reflecting on the IT Solution's Development. Write your conclusion of the written report for the IT solution.
Describe the electrical characteristics of ieee bus signals : Describe the way in which the IEEE bus can broadcast a message to several receivers, each of which operates at a different rate.
What are the functions of the dcd and cts : What is the difference between asynchronous and synchronous transmission systems? What are the advantages and disadvantages of each mode of transmission?
Benefit of having dhcp server : Given that DHCP services can also be provided on other platform beside Cisco (such as Windows, UNIX servers), what is the benefit of having DHCP.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd