asp help.
<%
objRec.movefirst
count=0
Do while not objRec.EOF
count=count+1
%>
<td> <% If ObjRec("cb") = "True" then %> <input type="checkbox" name="cb" value="<%=count%>" checked>
<% Else %> <input type="checkbox" name="cb" value="<%=count%>">
<% End If %> </td>
<%
objRec.movenext
loop
%>
my question is that the checkbox only has a count value when i check the checkbox. But when i try to do a response.write the count without checking any checkbox it gives me a -1. I dont understand it. With this code the checkbox should have a count value regardless of it being checked or not...
|