narasiman man

narasiman man

  • NA
  • 0
  • 112.5k

doubt

Mar 9 2012 11:12 AM
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {
            if(CheckBox1.Checked)
        {
            decimal cost = decimal.Parse(txt_cost.Text);
            decimal tax = cost / 5;
            Textbox2.Text = tax.ToString();
        }
        else
        {
            Textbox2.Text = txt_cost.Text;
          
        }               
    }


i am not getting the answer please help me.


cost 1000     here check box

tax           when i click the check box i want to calulate 5% of cost(1000*5/100)


tax i want the answer  50

please help tomorrow oi have interview please send it as quickly as possible.


i want answer to update.

thanks....

Answers (1)