S
Stefan Berglund
I've noticed that most examples offered in this group tend to use Response.Write to spit out the HTML rather than switch between
script and HTML. I also came across an article intimating the same idea. Is this considered inefficient?
<%If (IsArray(ar)) Then
Const cNumber = 0
Const cHorse = 1
Const cOwner = 2
Const cTrainer = 3
Const cRider = 4
Const cHorseID = 5
Const cOwnerID = 6
Const cTrainerID = 7
Const cRiderID = 8%>
<tr>
<th width="8%" align="center"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Number"><font face="Arial, Helvetica, sans-serif" size="2"><b>Number</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Horse"><font face="Arial, Helvetica, sans-serif" size="2"><b>Horse</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Owner"><font face="Arial, Helvetica, sans-serif" size="2"><b>Owner</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Trainer"><font face="Arial, Helvetica, sans-serif" size="2"><b>Trainer</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Rider"><font face="Arial, Helvetica, sans-serif"
size="2"><b>Rider</b></font></a></th></tr>
<% Dim iRow
For iRow = 0 To UBound(ar,2)%>
<tr>
<td width="8%" align="center" valign="top"><font face="Arial, Helvetica, sans-serif" size="2"><%= ar(cNumber,iRow)%></font></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&HorseID=<%= ar(cHorseID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cHorse,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&OwnerID=<%= ar(cOwnerID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cOwner,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&TrainerID=<%= ar(cTrainerID,iRow)%>"><font face="Arial, Helvetica,
sans-serif" size="2"><%= ar(cTrainer,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&RiderID=<%= ar(cRiderID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cRider,iRow)%></font></a></td></tr>
<% Next%>
<tr>
<td align="right" colspan="5"><font face="Arial, Helvetica, sans-serif" size="2"><b><%= intTotalEntries%> total show entries </b></font></td></tr>
<%Else%>
<tr>
<td colspan="5" align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b>There are no items to show in this view.</b></font></td></tr>
<%End If%>
</table>
</td>
</tr>
<!--#include file="inc/table_end.asp" -->
script and HTML. I also came across an article intimating the same idea. Is this considered inefficient?
<%If (IsArray(ar)) Then
Const cNumber = 0
Const cHorse = 1
Const cOwner = 2
Const cTrainer = 3
Const cRider = 4
Const cHorseID = 5
Const cOwnerID = 6
Const cTrainerID = 7
Const cRiderID = 8%>
<tr>
<th width="8%" align="center"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Number"><font face="Arial, Helvetica, sans-serif" size="2"><b>Number</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Horse"><font face="Arial, Helvetica, sans-serif" size="2"><b>Horse</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Owner"><font face="Arial, Helvetica, sans-serif" size="2"><b>Owner</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Trainer"><font face="Arial, Helvetica, sans-serif" size="2"><b>Trainer</b></font></a></th>
<th width="23%" align="left"><a class="results" href="showshowentries.asp?Show=<%= strShowID%>&Sort=Rider"><font face="Arial, Helvetica, sans-serif"
size="2"><b>Rider</b></font></a></th></tr>
<% Dim iRow
For iRow = 0 To UBound(ar,2)%>
<tr>
<td width="8%" align="center" valign="top"><font face="Arial, Helvetica, sans-serif" size="2"><%= ar(cNumber,iRow)%></font></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&HorseID=<%= ar(cHorseID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cHorse,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&OwnerID=<%= ar(cOwnerID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cOwner,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&TrainerID=<%= ar(cTrainerID,iRow)%>"><font face="Arial, Helvetica,
sans-serif" size="2"><%= ar(cTrainer,iRow)%></font></a></td>
<td width="23%" align="left" valign="top"><a class="results" href="showexhibitorresults.asp?Show=<%= strShowID%>&RiderID=<%= ar(cRiderID,iRow)%>"><font face="Arial, Helvetica, sans-serif"
size="2"><%= ar(cRider,iRow)%></font></a></td></tr>
<% Next%>
<tr>
<td align="right" colspan="5"><font face="Arial, Helvetica, sans-serif" size="2"><b><%= intTotalEntries%> total show entries </b></font></td></tr>
<%Else%>
<tr>
<td colspan="5" align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b>There are no items to show in this view.</b></font></td></tr>
<%End If%>
</table>
</td>
</tr>
<!--#include file="inc/table_end.asp" -->