My code:
public void FillMaxBankCode() { try { DataSet ds = new DataSet(); ds = bol.SelectMaxBankCode(); string j = ds.Tables[0].
txtbankid.Text property type is a string. Don't use int.parse. There is no need to. Just do: txtbankid.Text = j;
txtbankid.Text
int.parse
txtbankid.Text = j;