G
Guest
Hello,
I have a web user control which dynamically loads controls into a
placeholder control at runtime.
The controls loaded into the placeholder's control collection depends upon
which tab has been selected in the tab (repeater control with buttons)
control.
The problem I'm having is that on the loaded controls, the first time I
click on something, a postback appears to occur, but it does not fire the
desired event. For example, I have a RadioButtonList control which fires an
event : RBL1_SelectedIndexChanged(object sender, System.EventArgs e) when the
selected index is changed. I click on the first item (or any item) in the
list, a postback appears to occur, but the item is not selected anymore and
the event did not fire. I test this by defining a session variable value of
the index value each time the selected index value changes, and display all
session variables through another control on the page. The second time I
click it, all is well and the event fires.
Any clues or ideas on this one?
Thanks in advance,
Charlie
I have a web user control which dynamically loads controls into a
placeholder control at runtime.
The controls loaded into the placeholder's control collection depends upon
which tab has been selected in the tab (repeater control with buttons)
control.
The problem I'm having is that on the loaded controls, the first time I
click on something, a postback appears to occur, but it does not fire the
desired event. For example, I have a RadioButtonList control which fires an
event : RBL1_SelectedIndexChanged(object sender, System.EventArgs e) when the
selected index is changed. I click on the first item (or any item) in the
list, a postback appears to occur, but the item is not selected anymore and
the event did not fire. I test this by defining a session variable value of
the index value each time the selected index value changes, and display all
session variables through another control on the page. The second time I
click it, all is well and the event fires.
Any clues or ideas on this one?
Thanks in advance,
Charlie