I ve to add two numbers.....which is in Labels,so that labels s in sting..I ve applied the following code convert it to int..
int a=convert.Toint32(Label.text);
It does not work.
I m working in Visual Studio 12....
I ve to do one addition for my projet(ASP>NET using C sharp)
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 23, 2013, 8:14 PM EST
{
double a, b, c;
a = Convert.ToDouble(textBox1.Text);
b = Convert.ToDouble(textBox2.Text);
c = a + b;
label1.Text = c.ToString();
}