Hmm.
I've been stuck with this for a while and i can't quite get this right!
I'm using classic asp (dw 8) and ms sql server 2008.
I'm using a repeat region on the accordionpanel and accordionpaneltab.
Withing this, i have two nested repeat regions, one for the 'category' tab and the other for the 'content'.
Please see my page code below:
This is what i'm getting when i run the page:
Any ideas??
Andy
<%
While ((Repeat1__numRows <> 0) AND (NOT RSDetails.EOF))
%>
<div class="AccordionPanel">
<div class="AccordionPanelTab">
<% TFM_nest = RSDetails.Fields.Item("CalRepCategory").Value
If lastTFM_nest <> TFM_nest Then
lastTFM_nest = TFM_nest %>
<strong><%=(RSDetails.Fields.Item("CalRepCategory").Value)%></strong>
<%End If 'End Basic-UltraDev Simulated Nested Repeat %></div>
<div class="AccordionPanelContent">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><% TFM_nest2 = RSDetails.Fields.Item("Product").Value
If lastTFM_nest2 <> TFM_nest2 Then
lastTFM_nest2 = TFM_nest2 %>
<%=(RSDetails.Fields.Item("Product").Value)%>
<%End If 'End Basic-UltraDev Simulated Nested Repeat %></td>
<td><span class="carttext"><%=(RSDetails.Fields.Item("ServiceType").Value)%></s pan></td>
<td><span class="carttext">
<% If (RSDetails.Fields.Item("Price").Value)<>0 Then%>
<%= FormatCurrency((RSDetails.Fields.Item("Price").Value), 2, -2, -2, -2) %>
<%Else%>
Parts & Labour
<%End If%>
</span></td>
<td><input name="Qty<%=(RSDetails.Fields.Item("CalRepID").Value)%>" type="text" id="Qty<%=(RSDetails.Fields.Item("CalRepID").Value)%>" size="4" maxlength="2" /></td>
</tr>
</table>
</div>
</div>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
RSDetails.MoveNext()
Wend
%>