Hi
I have what I thought was a very simple requirement, and maybe it is.
I have a ListBox that contains a few items, that I add programmatically in Server side code.
As each item is selected I want to dynammically load a use control and present it to the right of the ListBox.
Actually I have all of this working just fine.
Again I am using a server side selection changed event to control the dynamic loading.
However I would like to set the intial selection to the first item in the listbox.
I have tried to do this after the LB is loaded, and I have set the first item to selected just before adding it to the LB.
In neither case do I get a selection change event so I can load the initial dynamic control.
What am I missing?
Do I just have to write extra code to load this control seperate from the SelectionChanged event I am relying on now?
TIA
I have what I thought was a very simple requirement, and maybe it is.
I have a ListBox that contains a few items, that I add programmatically in Server side code.
As each item is selected I want to dynammically load a use control and present it to the right of the ListBox.
Actually I have all of this working just fine.
Again I am using a server side selection changed event to control the dynamic loading.
However I would like to set the intial selection to the first item in the listbox.
I have tried to do this after the LB is loaded, and I have set the first item to selected just before adding it to the LB.
In neither case do I get a selection change event so I can load the initial dynamic control.
What am I missing?
Do I just have to write extra code to load this control seperate from the SelectionChanged event I am relying on now?
TIA