S
SandpointGuy
I have a 2.0 web page with a datalist and a repeater control. The values
in the datalist are populated from a dataset; if one of them is clicked
the repeater is populated (from a differently named dataset) with the value
from the clicked item. The repeater is quite simple, consisting of 2
asp:labels.
Works fine when one of the items in the datalist control is clicked.
The problem Im having is how values are displayed in the repeater on the
initial
load of the page. In the Page_Load where IsPostBack=false, Im populating the
repeater's dataset with the same method that occurs when the first datalist
item
is clicked.
What Im seeing is that 1. one of the labels is populated with values displayed
in the datalist control, 2. the other label is populated with the first value
in the dataset created for the repeater.
I just cannot determine why this is happening. Any help would be
greatly appreciated. Thanks!
in the datalist are populated from a dataset; if one of them is clicked
the repeater is populated (from a differently named dataset) with the value
from the clicked item. The repeater is quite simple, consisting of 2
asp:labels.
Works fine when one of the items in the datalist control is clicked.
The problem Im having is how values are displayed in the repeater on the
initial
load of the page. In the Page_Load where IsPostBack=false, Im populating the
repeater's dataset with the same method that occurs when the first datalist
item
is clicked.
What Im seeing is that 1. one of the labels is populated with values displayed
in the datalist control, 2. the other label is populated with the first value
in the dataset created for the repeater.
I just cannot determine why this is happening. Any help would be
greatly appreciated. Thanks!