ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

.asp coding help!



  Megane DCi 147bhp/350nwm
Hi all,

If you look at this link

http://www.lease360.com/offers2.asp?v=car&id=77

It brings these details through twice;

Registration Fee
Delivery
Twelve Months Road Tax
Concert single CD player with MP3 facility
Manual headlight levelling
Solid paint
4 spoke leather steering wheel with gear change controls
Metrik design fabric upholstery
Vavona bernstein inlay
17" 16 Spoke Alloy Wheels
Registration Fee
Delivery
Twelve Months Road Tax
Concert single CD player with MP3 facility
Manual headlight levelling
Solid paint
4 spoke leather steering wheel with gear change controls
Metrik design fabric upholstery
Vavona bernstein inlay
17" 16 Spoke Alloy Wheels


as you can see. I can't find where in the code it is going wrong!

Please help!
 
  Megane DCi 147bhp/350nwm
%= RenderAsList( objRS("FactoryOptions") ) %>
<%
If Trim( objRS("DealerOptions").Value ) <> "" Then
%>
<hr />
<%= RenderAsList( objRS( "DealerOptions" ) ) %>
<%
End If
%>
 
  Golf Mk6 Oil Burner
Do a count on your recordset to check there isnt 2 identical records.

Either that or that code is in the middle of a loop ?

Also, to cut down on code/lines, change to this i think (not used inline asp for a while) ..

<%
If Trim( objRS("DealerOptions").Value ) <> "" Then
Response.Write("<hr/>")
RenderAsList( objRS( "DealerOptions" ) )
End If
%>
 
  Megane DCi 147bhp/350nwm
as of yet not found anything...i'll slap the full code on pastebin!

2secs!
 
  Golf Mk6 Oil Burner
<%= RenderAsList( objRS("FactoryOptions") ) %>

and

<%= RenderAsList( objRS( "DealerOptions" ) ) %>

... has to be the same data and that is why its duplicated on screen, that is the only explanation looking at your code. check what data you have directly in the database under the fields FactoryOptions and DealerOptions for a 'car', id '77' for example. i'm assumming these fields are comma delimited strings and you are parsing them with the RenderAsList function.
 


Top