I have a working XML file and ASPX page that displays the records fine. On another page I want to display one random record from that XML file (the record changes each time the page is refreshed). How can I acomplish this?
This is a small sample of my xml file:
<item_number>100</item_number>
<date_added>06 May 08</date_added>
<reg_price>280</reg_price>
<sale_price>150</sale_price>
<location>Birchwood</location>
<description>Maple wall cabinet.</description>
<picture_1>Data_files\Close_outs\pictures\100p1.jpg</picture_1>
<picture_2>Data_files\Close_outs\pictures\100p2.jpg</picture_2>
<picture_3>Data_files\Close_outs\pictures\100p3.jpg</picture_3>
<picture_1l>Data_files\Close_outs\pictures\100p1l.jpg</picture_1l>
<picture_2l>Data_files\Close_outs\pictures\100p2l.jpg</picture_2l>
<picture_3l>Data_files\Close_outs\pictures\100p3l.jpg</picture_3l>
</record>
<item_number>101</item_number>
<date_added>06 May 08</date_added>
<reg_price>380</reg_price>
<sale_price>195</sale_price>
<location>Birchwood</location>
<description>Maple pull out spice cabinets.</description>
<picture_1>Data_files\Close_outs\pictures\101p1.jpg</picture_1>
<picture_2>Data_files\Close_outs\pictures\101p2.jpg</picture_2>
<picture_1l>Data_files\Close_outs\pictures\101p1l.jpg</picture_1l>
<picture_2l>Data_files\Close_outs\pictures\101p2l.jpg</picture_2l>
</record>