how to resolve this error "Input string was not in a correct format."
by using this code
TextBox3.Text = Convert.ToString(Convert.ToDouble(TextBox1.Text) + Convert.ToDouble (TextBox2.Text)* 0.001);
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ranjan DailataPosted Mar 18, 2016, 9:35 AM
ramya tPosted Mar 19, 2016, 2:03 AM
ramya tPosted Mar 17, 2016, 2:22 AM
Shweta LodhaPosted Mar 17, 2016, 2:11 AM
what do you mean by 'may be'?
Could you please share some sample values for textbox 1?
ramya tPosted Mar 17, 2016, 2:08 AM
Shweta LodhaPosted Mar 17, 2016, 2:04 AM
Hi ramya t,
You will get such error only when you are not giving numeric value in textbox 1 and 2. Please tell me, what input are you supplying in your textboxes.
Amit Kumar SinghPosted Mar 17, 2016, 1:59 AM
ramya tPosted Mar 17, 2016, 1:55 AM
Amit Kumar SinghPosted Mar 17, 2016, 1:31 AM
ramya tPosted Mar 17, 2016, 1:29 AM
Amit Kumar SinghPosted Mar 17, 2016, 1:26 AM