I have 2 textboxes
textbox1, textbox2
I want to calculate 15% of the number user entered in textbox1 and show it in textbox2
I tried this :
if (!string.IsNullOrEmpty(textBox3.Text))
textBox7.Text = (int.Parse(textBox3.Text) *100 / "15%).ToString();
if (!string.IsNullOrEmpty(textBox3.Text))
textBox7.Text = (int.Parse(textBox3.Text) *100 / "15%).ToString();
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 attend5days leftRegister
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 16, 2015, 9:00 PM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 16, 2015, 6:58 PM EDT