Hello

Need some help with this page that I'm creating.

I have a page, that receives a List of Orders, for each order i need to load a user control. In the user controls I have a table, and for each order detail i add a row to the table, where I have several cells and 3 buttons, increase and decresae quantity and a remove line. So everything is created dynamic...

The logic that i'll try to implement, with some sample data (class in project, not normalized):

1 - Main page - Page Load - not postback -> use a Prop with ViewState to store the data;
2 - Main page - Page Load - Linq to get the number of different orders in the Prop. And for each different order, create a new UC with the help of the function Page.LoadControl(Asxc_Path), and pass the filtered list (order of the loop), into a Prop of the user control
3 - User Control - Load - Get the prop and for each order line, create a table row, with buttons and set the handlers for the click events.

I think everything works with the exception of the click events, after some reading in MSDN, i get the felling that the click events are lost... So i read about the OnInit event of the user control, to create the controls, but i think that at this point i don't have access to the UC props, so i don't have a list to loop.

So, my question, what should i do to handle this situation, or how to know the list in the OnInit, not using session vars?

Thanks