Question
Defaullt.aspx Price quotation Price quotation Sales price 100 Discount percent 20 Discount amount Total price Default.aspx.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using
Defaullt.aspx
Default.aspx.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;
namespace Coding0504 { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { UnobtrusiveValidationMode = UnobtrusiveValidationMode.None; }
protected void btnCalculate_Click(object sender, EventArgs e) { if (IsValid) { decimal salesPrice = Convert.ToDecimal(txtSalesPrice.Text); decimal discountPercent = Convert.ToDecimal(txtDiscountPercent.Text) / 100;
decimal discountAmount = salesPrice * discountPercent; decimal totalPrice = salesPrice - discountAmount;
lblDiscountAmount.Text = discountAmount.ToString("c"); lblTotalPrice.Text = totalPrice.ToString("c"); } }
} }
Confirm.aspx
Above code is incomplete. it need to complete in required field.
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 confim button to the right of the Calculate button. Second, the Confirm button redirects to a Confirmation page. The Quotation page (Default.aspx) Price quotation Sales price160 Dscoumt percent 2 ,so Discount amount ot pice 2 Cakulste Conmm Erler pr eand dstount amount and CEI Catutote. The Confirmation page (Confirm.aspx) Quotation confirmation Sales price $15.00 Discount amount $37.50 Toral pice $11250 Send confirmation to Name Grace Hopper Eil adess acegahoo.co Click the Send Quotation buton 30 send the quotanon via em
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started