The first thing to look at is the timestamps of the records.
Are they the
same, or spaced apart. It could be that one record is
inserted when the page
loads and another on postback of the form.
The next technique to use is logical deduction with
Response.End(). Put
Response.End at the beginning of the code and run the page.
It's likely that
no records will be inserted. Next, move the code to the
bottom of the page.
It's likely now that 2 records will be inserted. So, by
logical deduction,
the problem lies somewhere in between. Next, move
Response.End to the middle
of the code. What happens? 0, 1 or 2 records inserted. Using
that
information you can then move the Response.End to other
positions and
isolate where the problem lies.
--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004