T
TheStripe
Hello all,
Wondering if anyone has come across this problem I am having..
I am Subclassing a RadioButtonList to add some properties that I need. I am
building up
a table and adding to a placeHolder control. I also register an event
handler
just before finally adding MyRadioButtonList to a TableCell control.
On Page_load I call my method that adds a Table containing MyRadioButtonList
to the placeholder.
The strange part is, On the first page load, MyRadioButtonList Selects the
proper ListItem
I have specified in code. on all subsequent postbacks it selects the first
listitem in MyRadioButtonList. I have stepped through the code and
everything seems to be fine. However on the first postback the
SelectedItemChanged event fires, and the first listItem is selected,
Contrary to what I have in code. And all subsequent postbacks have the first
item selected and no event fires.
Any Ideas?
Thanks Guys,
Robert.
Wondering if anyone has come across this problem I am having..
I am Subclassing a RadioButtonList to add some properties that I need. I am
building up
a table and adding to a placeHolder control. I also register an event
handler
just before finally adding MyRadioButtonList to a TableCell control.
On Page_load I call my method that adds a Table containing MyRadioButtonList
to the placeholder.
The strange part is, On the first page load, MyRadioButtonList Selects the
proper ListItem
I have specified in code. on all subsequent postbacks it selects the first
listitem in MyRadioButtonList. I have stepped through the code and
everything seems to be fine. However on the first postback the
SelectedItemChanged event fires, and the first listItem is selected,
Contrary to what I have in code. And all subsequent postbacks have the first
item selected and no event fires.
Any Ideas?
Thanks Guys,
Robert.