你这错误提示都说得很明白很明白了,是缺少next 因为你的代码使用了for循环 而你的for循环有始且无终 上面用了:for i=1 to rs_parameter("ex_list") 开始循环 但下面没有 next 继续循环 修改: for i=1 to rs_parameter("ex_list")if rs.eof Then exit For 'If i Mod 2 =0 Then 'response.write "