Cannot implicitly convert type 'int' to 'string'

前端 未结 4 1217
情话喂你
情话喂你 2021-01-28 01:26

My code:

public void FillMaxBankCode()
{
    try
    {
        DataSet ds = new DataSet();
        ds = bol.SelectMaxBankCode();
        string j = ds.Tables[0].         


        
4条回答
  •  独厮守ぢ
    2021-01-28 01:44

    txtbankid.Text property type is a string. Don't use int.parse. There is no need to. Just do: txtbankid.Text = j;

提交回复
热议问题