Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是对于每个循环都可以在 asp 经典中使用
如果是这样,如何遍历页面的所有控件?
在 ASP 中没有“控件”之类的东西。ASP 是一个脚本,其中所有块之外的内容都<% %>被<script runat="server">简单地视为一组字节,以便在脚本执行时发送到响应。
<% %>
<script runat="server">
ASP 的事实上的脚本语言是 VBScript,它确实有一个For Each允许枚举集合的语句,但是您不会在 ASP 中找到控件的集合。
For Each