Skip to content

Please help me in calculating grossrent?

Asked Jun 21, 2012, 8:53 PM EDT1 answer
Share
LinkedInX
i attach file please see.


rent textbox 100   in that i have calculate button when i click the calculate button 10 will display in tax text box(10)

tax  textbox 10
 after that i want to add 100 and 10 
grossrent textbox 110
please give the code in csharp i dont know how to do .please send the code.

And copy the below code as follows

  if (txt_rent.Text != "")
                txt_tax.Text = (Convert.ToDouble(txt_rent.Text) * 0.1236).ToString();

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    tax.Text = 10;
    grossrent.Text =Convert.ToString( Convert.ToInt32(tax.Text) + 100);
    0