views:

17

answers:

0

I'm creating some sort of "wishlist" where users can click on any item in a repeater (clicking on a button).

When a users clicks the button I add that item to a session("wishlist"). The session contains a list of strings that are shown in a wishlist.

To render the wishlist on several pages I'm using a user control that contains a repeater that just loops over all items in that same session variable.

This works great, except for when I click on an item button "add to list" in the repeater, the user control does not show this newly added item in the wishlist (repeater looping over the session) until I manually refresh the page.

The button "add to list" in the repeater is triggerting a postback so I would think that the user control is being rendered again from the ground up.

Any ideas what's wrong?