Here is the deal

I have a shopping cart in the user control

where I have a method called Polulate Cart.. it reads a few tables from the db and fill the cart..


I insert this control on my products page When the user click on a product I use the addProduct method of my shopping cart class... it basically write the product id to the cart table. Then the page postback, and here is the tricky part

FIRST the Load event on the user control, THEN the event that adds the product in the db fires and then the page loads...

The problem here is that the shopping cart user control refreshes itself BEFORE the page has had a chance to update the cart-table with the product, therefor it will not show that item until the second time the page reloads...


HOW can I solve this? I tried adding a custom event that fired after the page has been reloaded... no luck

kind regards
Henrik