Author: Mlard | Posted on: 4/28/2010 7:05:13 AM | Views : 1082

Hello, I hope someone can help. (Please forgive me if this question is in the wrong forum!). I'm a bit new to ASP.NET.
I have a created a dynamic solarsystem map. Basically I have a updatepanel which inside I programattically create imagebuttons of the 'planets'. These imagebuttons are given a Command event and when clicked the idea is to set the clicked planet in question as the parent and redisplay the map.
Inside the command event I pass in the ID of the planet and this sets a session varible. The panel load event is then designed to use this session varible to set the new parent and display the child 'moons'.
What I have found is that the updatepanel reloads (panel_load) before the button command event is fired, and therefore it doesn't pick up the new session varible until the next imagebutton click, or a full page reload occurs.
I'm not sure how to go about firing the command event be ...

Go to the complete details ...