c# / .Net 3.5
I have a page with a number of user controls on it. I have an issue with one that is programmatically generated.
The Control is created on the Master Pages OnInit() event.
When it is created it creates a number of LinkButtons. Clicking on one of these linkbuttons causes a postback to the master page, and the usercontrol itsself is redrawn. However, the event tied to the link button does not fire.
The user controls that are placed on the page in design time also have an equivalent method and way of generating link buttons, but those buttons trigger fine.
Im getting close to just creating a new template for each of the pages that uses a type of the dynamic control, and placing the control on it in design time just to make this issue go away, but that defeats the point of the exercise, so can anyone help me pin this down and fix it?
I have a page with a number of user controls on it. I have an issue with one that is programmatically generated.
The Control is created on the Master Pages OnInit() event.
When it is created it creates a number of LinkButtons. Clicking on one of these linkbuttons causes a postback to the master page, and the usercontrol itsself is redrawn. However, the event tied to the link button does not fire.
The user controls that are placed on the page in design time also have an equivalent method and way of generating link buttons, but those buttons trigger fine.
Im getting close to just creating a new template for each of the pages that uses a type of the dynamic control, and placing the control on it in design time just to make this issue go away, but that defeats the point of the exercise, so can anyone help me pin this down and fix it?