早教吧 育儿知识 作业答案 考试题库 百科 知识分享

一段asp语言,还有哪里有问题ConnClass.ExecuteSqlRst,Sql,"SELECT"Response.Write("")DoWhileNot(Rst.EoforRst.Bof)Ifdepartment=Trim(Rst("autoID"))ThenResponse.Write(""&Rst("department")&"")EndIfRst.MoveNext

题目详情
一段asp语言,还有哪里有问题
ConnClass.ExecuteSql Rst,Sql,"SELECT"
Response.Write("")
Do While Not(Rst.Eof or Rst.Bof)
If department = Trim(Rst("autoID")) Then
Response.Write(""&Rst("department")&"")
End If
Rst.MoveNext
▼优质解答
答案和解析
ConnClass.ExecuteSql Rst,Sql,"SELECT"
Response.Write("")
Do While Not(Rst.Eof or Rst.Bof) 这里改成 Do While Not(Rst.Eof and Rst.Bof)
If department = Trim(Rst("autoID")) Then
Response.Write(""&Rst("department")&"")
End If
这里不知道是你的需要还是什么,应该也有问题
Rst.MoveNext
这是动态生成select控件的代码