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

  Racial segregation along with gender inequality

Explain how has the early racial segregation along with gender inequality establisheb by white men helped in the formation and foundation of U.S. Capitalism?

  Find a linear regression equation for the linearized data

The distance that a person can see from an airplane depends on the altitude of the airplane, as shown in the table below.

  Cybercrime-related laws and digital evidence

Imagine you are watching a movie that has a dramatic court scene where the prosecutor picks up a menacing weapon used in the commission of the crime. As he or she thrusts it up high for all to see, a collective gasp echoes through the courtroom. T..

  What are the key questions an it auditor

What are the key questions an IT auditor can ask to help determine which end-user applications have top priority in an organization?

  The outline pane shares its portion of the screen with the

The outline pane shares its portion of the screen with the _____ pane

  Will the client be pleased or angry

calculate the cost and schedule variances. Will the client be pleased or angry?

  Reasons why the company needs a security plan

Prepare a 15-slide presentation with speaker notes for Senior Management that will provide an outline for a Security Guidance plan encompassing best practices from key areas that were covered in this course.

  Benefits of recursion over simple loops

What are the benefits of recursion over simple loops? Can recursions be used to find specific words, find and replace these words? Would you use a loop or recursion for this?

  Draw the project network showing the activities

Draw the project network showing the activities with their expected times.

  Use a seperate set interval or settimeout method

Use a seperate set interval or settimeout method to begin animating each image.

  Compare brands of virtualization software available

Compare and contrast the top three (3) brands of virtualization software available. Focus your efforts on components such as standard configuration, hardware requirements price, and associated costs.

  Expect the p-values to have a uniform distribution

If the signal strengths are roughly normal, then we expect the p-values to have a uniform distribution. This leads to about 5% of the p-values for the 8000 tests to fall below 0.05.

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