Error message during calculation

前端 未结 4 973
长发绾君心
长发绾君心 2021-01-29 06:31

Anyone, please take a look at my line of code.

int totalValue = 0;
    totalValue = int.Parse(Label9.Text) * int.Parse(Label6.Text);
    Label8.Text = **totalVa         


        
4条回答
  •  逝去的感伤
    2021-01-29 07:36

    You should convert int to string. Something like this:

    Label8.Text = totalValue.ToString();
    

    Or this:

    Label8.Text = totalValue + "";
    

提交回复
热议问题