For Each objItem In Request.Form If Request.Form(objItem).Count >1 Then ‘More than one value in this item Response.Write objItem & “:<BR>” For intLoop = 1 To Request.Form(objItem).Count Response.Write “Subkey” & intLoop & “value = “& Request.Form(objItem) (intLoop) & “<BR>” Next Else Response.Write objItem & “ = ” & Request.Form(objItem) & “<BR>” End If Next 对于前面的包含三个OtherHobby控件的窗体实例,这将返回:
OtherHobby: Subkey 1 value = Gardening Subkey 2 value = Subkey 3 value = Mountaineering 然而,由于很少给多个文本框相同的名字,因此这种技术很少用到。