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
Loading
Raaj KumarPosted Mar 1, 2010, 8:19 AM
Convert.ToInt16(textbox2.text)
and finally,
int result=Convert.ToInt16(textbox1.text)+Convert.ToInt16(textbox2.text);
TextBox3.text=result.ToString();
raghu gupthaPosted Mar 1, 2010, 8:11 AM
but it is given another not convert string to int
Raaj KumarPosted Mar 1, 2010, 7:35 AM
Convert.ToInt16(textbox1.text)
Regards,
raaj