F
Florian Paulus
hallo group!
i have a user control that using a listbox and a dataset to fill it.
usually i can give some parameters in the form of public properties to
user controls for example :
<my:MinMaxAlphaField Required="false" ID="cfCity" Label="City:"
MaxCharacters="50" MinCharacters="3" runat="server"/>
so here im setting the label text and it works fine.
now for the usercontrol that has the listbox i want to pass the dataset.
unfortunately i seem to be able to just pass strings there so my
question is, how can i pass a dataset from outside?
the dataset itself is the result of a methodcall.
the page containing all this is using a wizard control and the data
depends on a wizard step before, so i tried to pass the dataset in the
wizardstep event, but this assignment seems to be done after the control
is rendered, cause if i set a breakpoint in the control's page_load
event where the dataset is assigned to the listbox its still null.
how can i accomplish my mission? i hope its understandable.
cheers
florian
i have a user control that using a listbox and a dataset to fill it.
usually i can give some parameters in the form of public properties to
user controls for example :
<my:MinMaxAlphaField Required="false" ID="cfCity" Label="City:"
MaxCharacters="50" MinCharacters="3" runat="server"/>
so here im setting the label text and it works fine.
now for the usercontrol that has the listbox i want to pass the dataset.
unfortunately i seem to be able to just pass strings there so my
question is, how can i pass a dataset from outside?
the dataset itself is the result of a methodcall.
the page containing all this is using a wizard control and the data
depends on a wizard step before, so i tried to pass the dataset in the
wizardstep event, but this assignment seems to be done after the control
is rendered, cause if i set a breakpoint in the control's page_load
event where the dataset is assigned to the listbox its still null.
how can i accomplish my mission? i hope its understandable.
cheers
florian