asp.net session in usercontrol empty until page refresh -


I'm making some sort of "wishlist" where users can click on a repeater on any object ( Button).

When a user clicks the button, I add that item to the session ("wishlist"). The session has a list of wires that are shown in a wishlist.

To present the wish list on multiple pages, I am using a user control that has repeater which loop on all items in the same session variable.

This works great, besides when I click on an item button "Add to List" in the Repeater, User Control will add this newly added item to the Wishlist (Repeater Looping on Session) Does not display unless I manually refresh the page.

The "add to list" button in the repeater is triggering a postback, so I would think that user control is being re-presented from the ground up.

What is a wrong idea?


Comments