First, Am putting 3 textboxes and 1 button, and giving some numbers to first two textboxes. If we click button then the value(sum) of first two textboxes will be displayed in the third textbox.
I want code.
Getting output of first two textboxes in the 3rd textbox when we click the button
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ashish SinghalRank #785 · 2.9K reputationPosted Jan 30, 2006, 3:00 AM EST
Santhi G10 reputationPosted Jan 30, 2006, 9:36 PM EST
cannot implicitly convert type 'int' to 'string' .
sudheer panwar19 reputationPosted Jan 30, 2006, 11:05 PM EST
if
(textBox1.Text.Trim() != string.Empty && textBox2.Text.Trim() != string.Empty ){
int sum = int.Parse(textBox1.Text.Trim())+ int.Parse( textBox2.Text.Trim());textBox3.Text = sum.ToString();
}
Santhi G10 reputationPosted Feb 1, 2006, 1:35 AM EST