更新时间:2023-12-06 15:14:28
您需要了解正在发生的事情:当然,问题在于"i"对于"Table1"中的行数越来越大,但是您需要查看"count1"的值并弄清楚为什么它大于行数. >
在行上放置一个断点
You need to find out what is going on: Certainly, the problem is that "i" is getting to big for the number of rows in "Table1", but you need to look at the value of "count1" and work out why it is bigger than the number of rows.
Put a breakpoint on the line
int count1 = Convert.ToInt32(ddlanswers.SelectedValue.ToString());
然后从那里开始.