“Input string was not in a correct format.”

后端 未结 5 1976

I am working on a project in which I have a form through which I can edit a question available in a list view. Whenever I select a row from the list view and click on the \'

5条回答
  •  旧时难觅i
    2020-12-11 02:53

    It looks that whatever that text is containing some characters which cannot be converted to integer like space, letters, special characters etc. Check what is coming through dropdown as below

    lvTwoOrMoreOptions.SelectedItems[0].Text.ToString();

    and see if that is the case.

提交回复
热议问题