Posts

Showing posts from January 1, 2019

How to calculate percentage Below Percentage Text Changed Event In C#

  Protected void txtBelowPercentage_TextChanged (object sender, EventArgs e)         {             if (Convert.ToDecimal(txtAbovePer.Text) == 0)             {                 decimal Amount = Convert.ToDecimal(txtEsAmount.Text ==                                    string.Empty ? "0" : txtEsAmount.Text);                 decimal abovebelow = Convert.ToDecimal(txtBelowPer.Text == string.Empty ? "0"         : txtBelowPerc.Text);                 decimal abovebelowvalue = EsAmount * (abovebelow / 100);                 decimal TenderAmount = EsAmount + abovebelowvalue;                 txtTend...

how to calculate percentage Text-Changed Event In Asp.Net

 Public void txtAboveBelowPercentage_TextChanged (object sender, EventArgs e)         {             if (Convert.ToDecimal(txtAbovePercentage.Text) > 0)             {                 decimal EstimatedAmount = Convert.ToDecimal(txtEstimatedAmount.Text == string.Empty ? "0" : txtEstimatedAmount.Text);                 decimal abovebelow = Convert.ToDecimal(txtAbovePercentage.Text == string.Empty ? "0" : txtAbovePercentage.Text);                 decimal abovebelowvalue = EstimatedAmount * (abovebelow / 100);                 decimal TenderAmount = EstimatedAmount + abovebelowvalue;                 txtTenderAmount.Text = TenderAmount.ToString();             }   ...

Popular posts from this blog

String Program in C#

CSV using XmlNode

Controller_Model. cs