Calculate the amount due for an order. For each order, the user should enter the
ID: 3792194 • Letter: C
Question
Calculate the amount due for an order. For each order, the user should enter the following information into text boxes: customer name, address, city, state (two- letter abbreviation), and ZIP code. An order may consist of multiple items. For each item, the user will enter the product description, quantity, weight, and price into text boxes. You will need buttons for Add This Horn, Update Summary, Clear, Print, and Exit. For the Add This Item button, validate the quantity, weight, and price. Each must be present and numeric. For any bad data, display a message box. Calculate the charge for the current item and add the charge and weight into the appropriate totals, but do not display the summary until the user clicks the Update Summary button. Do not calculate shipping and handling on individual items; rather, calculate shipping and handling on the entire order.Explanation / Answer
<%@ page language ="VB" Debug="true" AutoEventWireup="false" Codefile="customer.aspx.vb" Inherits="customer" $>
<head runat="server">
<title>Customer Data </title>
</head>
<body>
<form id="form1" runat="server">
name textbox
name RequiredFieldValidator
<asp:scriptManager ID ="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:updatePanel Visible=false ID="updatePanel" runat="server">
<ContentTemplate>
zip code textbox
address textbox
City textbox
State textbox
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
<title>product Data </title>
</head>
<body>
<form id="form1" runat="server">
name textbox
name RequiredFieldValidator
<asp:scriptManager ID ="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:updatePanel Visible=false ID="updatePanel" runat="server">
<ContentTemplate>
description textbox
quantity textbox
weight textbox
price textbox
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
private sub addthisitem_click(sender as object, eas eventobj)handles button.click
{
quantity.textbox=string.empty then
message.show("quantity not enered");
weight.textbox=string.empty then
message.show("weight not enered");
price.textbox=string.empty then
message.show("price not enered");
}
private sub update_click(sender as object, eas eventobj)handles button.click
private sub summary_click(sender as object, eas eventobj)handles button.click
private sub clear_click(sender as object, eas eventobj)handles button.click
private sub print_click(sender as object, eas eventobj)handles button.click
private sub exit_click(sender as object, eas eventobj)handles button.click
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.