Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Enhance the the Quotation application The application for this exercise is an enhanced version of the one for Coding05-3 (Chapter 3). First, the Quotation has

Enhance the the Quotation application The application for this exercise is an enhanced version of the one for Coding05-3 (Chapter 3). First, the Quotation has a confirm button to the right of the Calculate button. Second, the Confirm button redirects to a Confirmation page. The Quotation page (Default.aspx) The Confirmation page (Confirm.aspx) Open the web application for this exercise and start enhancing its pages 1. Open the web application provided as Coding0504-Start. It includes the aspx and codebehind files for the pages shown above, but the first page doesnt have the code for the Confirm button and the second page doesnt have the code for either of the buttons that are shown. And neither page has the code for the label with the message thats displayed below the buttons. 2. Add the Confirm button to the Quotation page right after the Calculate button, and set its CssClass property to the btn and btn-primary classes. 3. Add the Send Quotation and Return buttons to the Confirmation page, and set the appropriate CssClass values. Also, set the properties for the Return button so it goes back to the Quotation page and doesnt cause validation. 4. On each page, add a label control below the buttons. For each label, set the ID to lblMessage, the CssClass to text-info, and the Text as shown above. 5. Test the application to see how its going, and make any adjustments. Add the C# code that makes the application work 6. Create a Click event handler for the Confirm button of the Quotation page. This button should redirect to the Confirmation page, which will display the quotation that is being confirmed by getting the data from session state. 7. To make this work, the Click event handler for the Calculate button of the Quotation page should save the sales price, discount amount, and total price in session state. Now, add that code to that event handler. 8. When the user clicks the Confirm button on the Quotation page to go to the Confirmation page, the Load event handler for the Confirmation page should get the data from session state and display it as shown above. Now, add that code to the Load event handler. 9. Add an event handler for the Click event of the Send Quotation button. If the entries for this form are valid, this handler should use the data entered by the user to display a message below the buttons that says: Quotation sent to at . It should also set the values in session state to null. Test and refine the operation of the application. 10. Code and test what you have so far. At this point, all four buttons should work, although you may be able to find errors by trying different sequences of button clicks. If, for example, the user clicks on the Confirm button on the Quotation page before clicking on the Calculate button, the application may blow up because there isnt any data in session state. 11. To fix errors like that, add code to the Click event handler for the Confirm button on the Quotation page that tests whether the value for the sales price in session state is null. If it is, this message should be displayed in the label below the buttons: Click the Calculate button before you confirm. If it isnt, the handler should redirect to the Confirmation page. 12. Do the same test in the Load event handler for the Confirmation page. If the sales price in session state is null, dont display the values on the page. If it isnt, get the values from session state and display them. Make any final adjustments 13. Take a final look at the application, and make any adjustments for improving the look of the application, the operation of the application, or the clarity and logic of the code. Finally, publish your project to the proper website on the student server. If you have forgotten how to publish your project, please review the information in Lesson 4.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions