<table>
<tr>
<td><input type="checkbox" value="5" name="Chk" <%=r1%>/></td>
<td>america</td>
<td><input type="checkbox" value="5" name="Chk" <%=r1%>/></td>
<td>russia</td>
</tr>
<tr>
<td><input type="checkbox" value="6" name="Chk" <%=r2%>/></td>
<td>china</td>
<td><input type="checkbox" value="6" name="Chk" <%=r2%>/></td>
<td> japan</td>
</tr>
<tr>
<td><input type="checkbox" value="7" name="Chk" <%=r3%>/></td>
<td>india</td>
<td><input type="checkbox" value="7" name="Chk" <%=r3%>/></td>
<td>pak</td>
</tr>
</table>
ASKER
ASKER
ASKER
<table>
<%
dim countries(2,1)
countries(0,0) = "america"
countries(0,1) = "russia"
countries(1,0) = "china"
countries(1,1) = "japan"
countries(2,0) = "india"
countries(2,1) = "pak"
For counter = 0 to ubound(countries)
%>
<tr>
<td><input type="checkbox" value="<%=counter %>" name="Chk" /></td>
<td><%=countries(counter,0) %></td>
<td><input type="checkbox" value="<%=counter %>" name="Chk" /></td>
<td><%=countries(counter,1) %></td>
</tr>
<%
next
%>
</table>
ASKER
<table>
<%
dim countries(2,2)
countries(0,0) = "america"
countries(0,1) = "russia"
countries(0,2) = 5
countries(1,0) = "china"
countries(1,1) = "japan"
countries(0,2) = 5
countries(2,0) = "india"
countries(2,1) = "pak"
countries(0,2) = 5
For counter = 0 to ubound(countries)
%>
<tr>
<td><input type="checkbox" value="<%=counter,2 %>" name="Chk" /></td>
<td><%=countries(counter,0) %></td>
<td><input type="checkbox" value="<%=counter,2 %>" name="Chk" /></td>
<td><%=countries(counter,1) %></td>
</tr>
<%
next
%>
</table>
ASKER
<table>
<%
dim countries(2,2)
countries(0,0) = "america"
countries(0,1) = "russia"
countries(0,2) = 5
countries(1,0) = "china"
countries(1,1) = "japan"
countries(1,2) = 6
countries(2,0) = "india"
countries(2,1) = "pak"
countries(2,2) = 7
For counter = 0 to ubound(countries)
%>
<tr>
<td><input type="checkbox" value="<%=countries(counter,2) %>" name="Chk" /></td>
<td><%=countries(counter,0) %></td>
<td><input type="checkbox" value="<%=countries(counter,2) %>" name="Chk" /></td>
<td><%=countries(counter,1) %></td>
</tr>
<%
next
%><tr><td> </td>
<td><input type="button" name="butt_grp_add" value="Remove" onclick="remgrp(document.frmgrp_<%=cnt%>)"/> </td>
<td> </td>
<td><input type="button" name="butt_grp_rem" value="Show" onclick="addgrp(document.frmgrp_<%=cnt%>)"/> <a href="javascript:hidediv(<%=cnt%>)">Close</a></td>
</tr>
</table>
ASKER
ASKER
Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.
TRUSTED BY
a basic loop to write out 3 rows would be:
Open in new window