Last post May 11, 2010 04:37 PM by thiagoprzy
May 10, 2010 10:05 AM|thiagoprzy|LINK
Hello everyone. I'm have the following issue:
My CompositeControl creates dinamically several RadioButtonLists according to the DataSource information. These controls are added to the Controls list and rendered in CreateChildControls event.
I need to create a LinkButton that clear a specific RadioButtonList selection and do a postback, to load the DataSource information again (some selections changes the data that need to be loaded from the database). For each RadioButtonList, I've put a LinkButton
and assigned the Click Event to a method inside the same CompositeControl, to do the RadioButtonList cleaning.
Unfortunatelly, the LinkButton doesn't trigger the Click Event. In HTML code, the link has the "onclick" attribute setted with the asp.net event, but when clicked, nothing happens.
May 11, 2010 04:37 PM|thiagoprzy|LINK
Let's simplify the question:
How to trigger the Click Event of a LinkButton created dinamically? I'm assigning the event on OnInit Event.