Hi There,
I have a composite server control that wrapps a RadiobuttonList. Which
is populate from a Collection of Objects.
The control is rendered and populated with data properly. On post back
it redraws itself with preserving the selection from the user. But I
can not figure out how to retrieve which radiobutton was selected.
I've created a public property in my Composite Control to expose the
private member "_radiobuttonlist" but the selected value is null on
postback.
I'm totally stumped :|
sam - 01 Aug 2006 00:04 GMT
Make sure that you are building your control tree *completely* - from
your radio button list all the way to the main Page object - by the
time Page_Init or Page_Load executes.
This will cause your problem if you don't do this. Usually
EnsureChildControls() is called from Page_Init() - or OnInit()
whichever you use.
> Hi There,
>
[quoted text clipped - 10 lines]
>
> I'm totally stumped :|