Specified cast is not valid

后端 未结 2 1347
礼貌的吻别
礼貌的吻别 2021-01-12 17:44

I\'m trying to get the Score_Waarde value from my database using the following code :

critid = critid_arr[teller2].ToString();

int scorehulp =          


        
2条回答
  •  长发绾君心
    2021-01-12 18:04

    Your SQL is probably giving back a different numeric type, such as long or decimal, or, apparently, string.

    Call Convert.ToInt32, which doesn't have the limitations of an unboxing cast.

提交回复
热议问题