ASPX ページで VB スクリプトを使用しています。反復ごとに、Page _load の codeBehind でそのスクリプトを For ループで使用する必要があります。
私のコードは:- (VBスクリプトを使用した.ASPXページ。)
<script type="text/vbscript" language="vbscript" >
sub wordit()
'Opens Word application and does some process
end sub
</script>
VB コード ビハインド パーツ:-
For i As Integer = 1 To colSelRowIndex
CheckboxTemplateId = colSelRowKeys(i).ToString 'I get the ID from here
ViewState("TemplateID") = CheckboxTemplateId 'I need to send the value to the sub routines
hen()'sub
den()'sub
cs.RegisterStartupScript(cstype, csname1 & i, "wordit();", True)
Next
ループから ID のワード ドキュメントと別の ID の別のドキュメントを開く必要があります。