Hi,
I know I'm doing this wrong but I can't be able to find a solution for this.
I have a list of items on a datalist with a "Select" button near each item. I'm creating dynamically a UserControl which includes the item information and "add to cart" button in a modal popup. When the user clicks selects an item, I create the User Control using the LoadControl method and add it to the panel of the Modalpanel. The usercontrols holds dynamic content and controls. After this phase the modal popup contains the correct information and I am able to see the User Control content.
The problem starts here: When I trigger the "Add to Cart" button nothing happens. Now, I know the reason this is happening relates to the fact that I do not populate the User Control in the "Pre_Init" event of the page. My question is: How can I overcome this? Am I doing this all wrong? What would be the best way to do this?
Thanks,
Nick
...
Go to the complete details ...