Hi ,
I am newer in dot net .i have develop small asp.net
application in this application have three textboxes
and one command button and using c# code
in this question i am click the button
the third textbox given the sum of two textboxes value
i wrote the some codeing but given error message
is not convert the "string to int' please give me anyone
help
thanks
Raghu
Asp.net programming errors
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Raaj KumarRank #7,836 · 233 reputationPosted Mar 1, 2010, 3:19 AM EST
Convert.ToInt16(textbox2.text)
and finally,
int result=Convert.ToInt16(textbox1.text)+Convert.ToInt16(textbox2.text);
TextBox3.text=result.ToString();
Raaj KumarRank #7,836 · 233 reputationPosted Mar 1, 2010, 2:35 AM EST
Convert.ToInt16(textbox1.text)
Regards,
raaj
raghu guptha10 reputationPosted Mar 1, 2010, 3:11 AM EST
but it is given another not convert string to int