Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Rafnas T PRank #280 · 8.8K reputationPosted Apr 28, 2017, 2:51 AM EDT
if (discounttxt.Text != "" && chk_DiscPerct.Checked==true)
{
discount = (_ttl * Convert.ToDecimal(discounttxt.Text)) / 100;
}
else if (discounttxt.Text != "")
{
discount = Convert.ToDecimal(discounttxt.Text);
}
else { discount = 0; }
if (addcosttxt.Text != "")
{
shopcost = Convert.ToDecimal(addcosttxt.Text);
}
else { shopcost = 0; }
txtsubttotal.Text = (_ttl + shopcost).ToString();
txtNewTotal.Text = (Convert.ToDecimal(txtsubttotal.Text) - discount).ToString();
Vinay SinghRank #604 · 4K reputationPosted Apr 28, 2017, 2:56 AM EDT
Jyoti JodhaRank #1,408 · 1.2K reputationPosted Apr 30, 2017, 10:27 PM EDT
Deepak Sharma123 reputationPosted May 1, 2017, 7:54 AM EDT